Doc #54000 [NEW]: date_create bug

From: Date: Sat, 12 Feb 2011 14:46:54 +0000
Subject: Doc #54000 [NEW]: date_create bug
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5980@lists.php.net to get a copy of this message
From: Operating system: windows 7 / linux PHP version: 5.3.5 Package: Windows Installer Bug Type: Documentation Problem Bug description:date_create bug Description: ------------ --- From manual page: http://www.php.net/datetime.construct#Errors/Exceptions --- i create date 2011-02-31 it impossible but menthod date_create don't error it return 2011-02-31 Test script: --------------- $date = date_create('2011-02-31'); if (!$date) { $e = date_get_last_errors(); foreach ($e['errors'] as $error) { echo "$error\n"; } } else { echo date_format($date, 'Y-m-d'); } return 2011-03-03 Expected result: ---------------- 2011-03-03 Actual result: -------------- return false -- Edit bug report at http://bugs.php.net/bug.php?id=54000&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54000&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54000&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54000&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54000&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54000&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54000&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54000&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54000&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54000&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54000&r=support Expected behavior: http://bugs.php.net/fix.php?id=54000&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54000&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54000&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54000&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54000&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54000&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54000&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54000&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54000&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54000&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54000&r=mysqlcfg

« previous php.doc.bugs (#5980) next »