|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-07 09:45 UTC] salathe@php.net
-Status: Open
+Status: Bogus
[2010-07-07 09:45 UTC] salathe@php.net
[2010-07-07 09:53 UTC] salathe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 10 05:00:01 2026 UTC |
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