Doc #52271 [NEW]: Versioning problem
| From: | tarekonline dot com at gmail dot com | Date: | Wed, 07 Jul 2010 07:10:10 +0000 |
| Subject: | Doc #52271 [NEW]: Versioning problem | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4656@lists.php.net to get a copy of this message | ||
From:
Operating system: Windows XP
PHP version: 5.2.13
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Versioning problem
Description:
------------
Hi,
on the online documentation you can see the versioning indicator: (PHP 5 >=
5.3.0)
under functions like (DateTime::diff, DateTime::createFromFormat,
date_diff(),
date_create_from_forma(), ..etc). I think this should indicate that these
functions are supported in PHP greater than 5.0 (in other words: supported
in 5.1
and 5.2) which is not true as it gives me always the fatal error message:
[Call to
undefined method DateTime::createFromFormat()]!
I am using:
ZendServer of PHP5.2.13 on Windows XP Service Pack3 with IIS5.1
My Script:
$dt = DateTime::createFromFormat('Y-m-d', DateTime::getTimestamp());
Test script:
---------------
$dt = DateTime::createFromFormat('Y-m-d', DateTime::getTimestamp());
Expected result:
----------------
Fatal error: Call to undefined method DateTime::createFromFormat() in
E:\Private\Projects\syndi\test.php on line 10
--
Edit bug report at http://bugs.php.net/bug.php?id=52271&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52271&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52271&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52271&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=52271&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52271&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=52271&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=52271&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=52271&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=52271&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=52271&r=support
Expected behavior: http://bugs.php.net/fix.php?id=52271&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=52271&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=52271&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=52271&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52271&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52271&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=52271&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=52271&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=52271&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=52271&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=52271&r=mysqlcfg