Bug #1315: date ("zS") not reporting properly

From: Date: Wed, 14 Apr 1999 19:52:29 +0000
Subject: Bug #1315: date ("zS") not reporting properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-5054@lists.php.net to get a copy of this message
From: brianj@pleiades.solar-systems.net Operating system: Linux 2.0 PHP version: 3.0.7 PHP Bug Type: Misbehaving function Bug description: date ("zS") not reporting properly the function date(), when passes the options: z - day of year, and S - add appropriate terminator for number, displays incorrectly. This script adequately conveys the difficulty: <? $today = date("zS"); PRINT "<CENTER>Today is the <STRONG>$today</STRONG> day of the year.</CENTER><BR>"; ?> Today(April 14, 1999), for example, it displays: Today is the 103th day of the year. This happens on the 3.0.5 RPM, and also on a compiled 3.0.7, configured with ./configure --with-apxs=/usr/sbin/apxs --with-mysql --with-apache=/usr/include --enable-track-vars More or less straight out of the documentation. -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5054) next »