Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A66BA475153 for ; Sun, 18 Aug 2002 13:11:34 -0400 (EDT) Received: from krusty.pcisys.net (krusty.pcisys.net [216.229.32.178]) by postgresql.org (Postfix) with ESMTP id E44A4474E71 for ; Sun, 18 Aug 2002 13:11:33 -0400 (EDT) Received: from [208.202.106.236] (moe1.meg106-236.cos.pcisys.net [208.202.106.236]) by krusty.pcisys.net (8.12.5/8.12.5) with ESMTP id g7IHBSW7029570 for ; Sun, 18 Aug 2002 11:11:32 -0600 (MDT) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.4 Date: Sun, 18 Aug 2002 11:11:29 -0600 Subject: Re: About to update the PostgreSQL-Functions in the PHP From: Keary Suska To: Postgres-PHP Message-ID: In-Reply-To: <003001c246b4$b28df2e0$7f54fea9@zwerg98> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/57 X-Sequence-Number: 1402 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"