note 79393 added to migration52

From: Date: Sat, 24 Nov 2007 23:56:19 +0000
Subject: note 79393 added to migration52
Groups: php.notes 
Request: Send a blank email to php-notes+get-132546@lists.php.net to get a copy of this message
[quote]PHP 5.2 introduced a new class, Datetime. If you already had a class in your app called Datetime then you're in trouble.[/quote] That's why PHP must have namespaces in the future. So you could define multiple classes with the same name in your application. Those classes are unique in there own scope (namespace). Then you could redefine something that someone wrote or combine two projects which contain both class that has the same name but different implementations. ---- Server IP: 83.137.20.135 Probable Submitter: 213.17.21.191 ---- Manual Page -- http://www.php.net/manual/en/migration52.php Edit -- https://master.php.net/note/edit/79393 Del: integrated -- https://master.php.net/note/delete/79393/integrated Del: useless -- https://master.php.net/note/delete/79393/useless Del: bad code -- https://master.php.net/note/delete/79393/bad+code Del: spam -- https://master.php.net/note/delete/79393/spam Del: non-english -- https://master.php.net/note/delete/79393/non-english Del: in docs -- https://master.php.net/note/delete/79393/in+docs Del: other reasons-- https://master.php.net/note/delete/79393 Reject -- https://master.php.net/note/reject/79393 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132546) next »