From:             
Operating system: Windows 7
PHP version:      5.3.4
Package:          Performance problem
Bug Type:         Bug
Bug description:DateTime raises a Warning when passed an incorrect date string

Description:
------------
Since upgrading to PHP 5.3.4 I'm finding that DateTime::__construct() emits
an 

error of level E_WARNING instead of an Exception when passed an invalid
date/time 

string.

Test script:
---------------
$date = new DateTime('foo');

Expected result:
----------------
An Exception should be raised.

Actual result:
--------------
An error of level E_WARNING.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53542&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53542&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53542&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53542&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53542&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53542&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53542&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53542&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53542&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53542&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53542&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53542&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53542&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53542&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53542&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53542&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53542&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53542&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53542&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53542&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53542&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53542&r=mysqlcfg

Reply via email to