Doc #52271 [Opn->Bgs]: Versioning problem
| From: | salathe@php.net | Date: | Wed, 07 Jul 2010 07:45:09 +0000 |
| Subject: | Doc #52271 [Opn->Bgs]: Versioning problem | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4657@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52271&edit=1
ID: 52271
Updated by: salathe@php.net
Reported by: tarekonline dot com at gmail dot com
Summary: Versioning problem
-Status: Open
+Status: Bogus
Type: Documentation Problem
Package: Documentation problem
Operating System: Windows XP
PHP Version: 5.2.13
New Comment:
The version line "PHP 5 >= 5.2.0" reads "[Available in] PHP 5 versions
greater
than or equal to 5.3.0". If you care to suggest a way of representing
the
versions for which a method is available in a more clear and equally
concise way,
then please do share that with us. In the mean time, I'll close this as
"not a
bug".
Previous Comments:
------------------------------------------------------------------------
[2010-07-07 09:10:10] tarekonline dot com at gmail dot com
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 this bug report at http://bugs.php.net/bug.php?id=52271&edit=1