You are here: Re: Best way to use other objects within classes? « PHP « IT news, forums, messages
Re: Best way to use other objects within classes?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация