Posted by Jason Barnett on 06/03/05 19:51
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
[Back to original message]
|