From:
Operating system: Ubuntu
PHP version: 5.3.6RC1
Package: Date/time related
Bug Type: Bug
Bug description:Conflicts of regular expressions in parse_date.re
Description:
------------
Regular expression year4 conflicts with gnunocolon, and pointeddate2 with
both timelong12 and timelong24.
Test script:
---------------
<?php
echo date("Y-m-d H:i:s", strtotime("2460")) . "\n"; // year4 was used
echo date("Y-m-d H:i:s", strtotime("2011")) . "\n"; // gnunocolon was used
echo date("Y-m-d H:i:s", strtotime("20.02.99")) . "\n"; // pointeddate2 was
used
echo date("Y-m-d H:i:s", strtotime("20.02.11")) . "\n"; // timelong24 was
used
Expected result:
----------------
Used single regular expression independently on date/time range
Actual result:
--------------
2460-02-25 15:17:46
2011-02-25 20:11:00
1999-02-20 00:00:00
2011-02-25 20:02:11
--
Edit bug report at http://bugs.php.net/bug.php?id=54102&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54102&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54102&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=54102&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54102&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=54102&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54102&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=54102&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=54102&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=54102&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=54102&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=54102&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=54102&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=54102&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54102&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54102&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54102&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=54102&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=54102&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=54102&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=54102&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=54102&r=mysqlcfg