Re: Best way to use other objects within classes?

From: Date: Fri, 03 Jun 2005 16:51:06 +0000
Subject: Re: Best way to use other objects within classes?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-216330@lists.php.net to get a copy of this message
Matthew Weier O'Phinney wrote:
* "Murray @ PlanetThoughtful" <lists@planetthoughtful.org>: <snip>
(Note: my development environment is PHP 5.0.3, but the production environment is 4.3.10. This is my first project built with 5.x local and 4.1.x remote, so if anyone with more experience spots any fatal flaws where I'm using 5.x specific methods etc, I'd appreciate knowing about them)
<snip>
If you're developing with PHP5, but the production environment is PHP4 then at the top of each script you probably want to add: <?php ini_set('zend.ze1_compatibility_mode', 1); ?> This way you will have objects default to pass by value instead of by reference and you don't end up deploying to production server with some really hard-to-find dereferencing problems. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

« previous php.general (#216330) next »