pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keary Suska <hierophant@pcisys.net>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: About to update the PostgreSQL-Functions in the PHP
Date: Sun, 18 Aug 2002 11:11:29 -0600
Message-ID: <B9853160.120A3%hierophant@pcisys.net> (raw)
In-Reply-To: <003001c246b4$b28df2e0$7f54fea9@zwerg98>

on 8/18/02 6:39 AM, poppcorn@cornelia-boenigk.de purportedly said:

> Hi everyone,
> 
> I am in the process of updating some parts of the PHP manual, and
> in the next few days the "PostgreSQL Functions" area is where I'll be
> up to.
> 
> Is there anything which anyone would like to be added, clarified,
> updated, or similar for this?
> 
> :-)
> 

One little gotcha that got me was that in previous PHP versions (I don't
recall which exactly, but at least prior to 4.1) the number_format()
function would return a decimal value without trailing 0's if no decimal
precision was specified. Now, decimal values are truncated if no precision
is specified. It may have been a bug before, but it was a behavior I relied
on.

Also it should be mentioned that strtotime() cannot parse date formats that
use a dash (-) as a delimiter, probably because the algorithm cannot
distinguish between its use as a delimiter and as a relative value, e.g. "-2
days".

Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"




view thread (4+ messages)  latest in thread

Message-ID: <B9853160.120A3%hierophant@pcisys.net>
Permalink:  ../B9853160.120A3%25hierophant@pcisys.net/
Also on:    postgresql.org/message-id/B9853160.120A3%hierophant@pcisys.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: hierophant@pcisys.net
  Subject: Re: About to update the PostgreSQL-Functions in the PHP
  In-Reply-To: <B9853160.120A3%hierophant@pcisys.net>
  References: <003001c246b4$b28df2e0$7f54fea9@zwerg98> <B9853160.120A3%hierophant@pcisys.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox