note 90135 deleted from language.namespaces by danbrown

From: Date: Tue, 07 Apr 2009 19:15:51 +0000
Subject: note 90135 deleted from language.namespaces by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152922@lists.php.net to get a copy of this message
Note Submitter: rudie-de-hotblocks ---- In response to [thomas dot worm at gsp-software dot de]: There is a way, like there always has been, but it's always been nasty and you should avoid it at all cost: eval. The following will not provoke a syntax error, but you should avoid it: <?php if ( (float)phpversion() >= 5.3 ) { eval("namespace MySpaceSubSpace;"); } ?> You should develop and implement your software separate from version changes though. Let a 5.2 program run on a 5.2 server and a 5.3 program on a 5.3 server. You can even have two versions of PHP running.

« previous php.notes (#152922) next »