note 77857 added to migration52

From: Date: Sun, 16 Sep 2007 14:42:15 +0000
Subject: note 77857 added to migration52
Groups: php.notes 
Request: Send a blank email to php-notes+get-130538@lists.php.net to get a copy of this message
Been scratching my head with multiple include problems for hours now. Just wanted to thank Sam for pointing out the new predefined Datetime class in PHP 5.2. If you're getting errors such as "Fatal error: Cannot redeclare class DateTime in PATH on line LINE_NUMBER" then you probably have a class called 'DateTime' (case-insensitive) somwhere. Renaming this class to a non-reserved word or class, like 'MyDateTime' should fix the errors (tested on PHP 5.2.0). -- Cheers, Darren Clark ---- Server IP: 194.145.210.3 Probable Submitter: 82.152.201.209 ---- Manual Page -- http://www.php.net/manual/en/migration52.php Edit -- https://master.php.net/note/edit/77857 Del: integrated -- https://master.php.net/note/delete/77857/integrated Del: useless -- https://master.php.net/note/delete/77857/useless Del: bad code -- https://master.php.net/note/delete/77857/bad+code Del: spam -- https://master.php.net/note/delete/77857/spam Del: non-english -- https://master.php.net/note/delete/77857/non-english Del: in docs -- https://master.php.net/note/delete/77857/in+docs Del: other reasons-- https://master.php.net/note/delete/77857 Reject -- https://master.php.net/note/reject/77857 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130538) next »