Re: svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/ext/date/lib/parse_date.c branches/PHP_5_3/ext/date/lib/parse_date.re
branches/PHP_5_3/ext/date/tests/bug54851.phpt branches/PHP_5_4/ext/date/lib/parse_date.c branches/PHP_5_4/ex

From: Date: Sun, 04 Dec 2011 12:25:53 +0000
Subject: Re: svn: /php/php-src/ branches/PHP_5_3/NEWS branches/PHP_5_3/ext/date/lib/parse_date.c branches/PHP_5_3/ext/date/lib/parse_date.re
branches/PHP_5_3/ext/date/tests/bug54851.phpt branches/PHP_5_4/ext/date/lib/parse_date.c branches/PHP_5_4/ex
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-67188@lists.php.net to get a copy of this message
On Sat, Nov 26, 2011 at 17:44, Derick Rethans <derick@php.net> wrote: > derick                                   Sat, 26 Nov 2011 16:44:21 +0000 > > Revision: > http://svn.php.net/viewvc?view=revision&revision=319960 > > Log: > - Fixed bug #54851 (DateTime::createFromFormat() doesn't interpret "D"). > > Bug: https://bugs.php.net/54851 (Assigned) > DateTime::createFromFormat, $format=='D' or $format=='l' Always Returns Today. > > Changed paths: >    U   php/php-src/branches/PHP_5_3/NEWS >    U   php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.c >    U   php/php-src/branches/PHP_5_3/ext/date/lib/parse_date.re >    A   php/php-src/branches/PHP_5_3/ext/date/tests/bug54851.phpt >    U   php/php-src/branches/PHP_5_4/ext/date/lib/parse_date.c >    U   php/php-src/branches/PHP_5_4/ext/date/lib/parse_date.re >    A   php/php-src/branches/PHP_5_4/ext/date/tests/bug54851.phpt That test is failing completely for me.. ▪ cat ext/date/tests/bug54851.out Tue, 17 May 2011 22:14:12 +0000 Fatal error: Call to a member function format() on a non-object in ..../date/tests/bug54851.php on line 5 Checking DateTime::getLastErrors() I get: ["error_count"]=> int(2) ["errors"]=> array(2) { [6]=> string(37) "A two digit minute could not be found" [8]=> string(38) "A two second minute could not be found" } ┌─[bjori][][⑆][PHP_5_4 ✗][~/Work/src/php/php/php-src/branches/PHP_5_4] └─▪ ./sapi/cli/php -r 'var_dump(DateTime::createFromFormat("D H i s", "Tue 0 00 00"));' object(DateTime)#1 (3) { ["date"]=> string(19) "2011-12-06 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(11) "Europe/Oslo" } ┌─[bjori][][⑆][PHP_5_4 ✗][~/Work/src/php/php/php-src/branches/PHP_5_4] └─▪ ./sapi/cli/php -r 'var_dump(DateTime::createFromFormat("D H i s", "Tue 0 0 00"));' bool(false) ┌─[bjori][][⑆][PHP_5_4 ✗][~/Work/src/php/php/php-src/branches/PHP_5_4] -Hannes

« previous php.cvs (#67188) next »