RE: [PHP] Re: Best way to use other objects within classes?
| From: | Murray @ PlanetThoughtful | Date: | Fri, 03 Jun 2005 17:11:43 +0000 |
| Subject: | RE: [PHP] Re: Best way to use other objects within classes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216332@lists.php.net to get a copy of this message | ||
> 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.
Hi Jason,
Not a bad tip, thank you! However, I've been, to the best of my knowledge,
explicit in passing by reference in my code wherever I've needed to access
objects within classes etc.
Many thanks,
Murray