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

Reply via email to