RE: Re: Best way to use other objects within classes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux