Re: Why the ampersand?
| From: | Bertrand Mansion | Date: | Mon, 16 Apr 2007 15:41:49 +0000 |
| Subject: | Re: Why the ampersand? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27066@lists.php.net to get a copy of this message | ||
Le 16 avr. 07 à 17:24, Alex Grasman a écrit :
Hello people, I have a basic question about PEAR Packages. Why do all the objects have ampersands? They usually cause notices when a function has been written like function &functionname () And when assigning a variabele &= is used instead of =. I know that there was something with PHP4 and objects needing ampersands. But since they cause notices and look ugly, I tend to remove them (I use PHP 5.2.1). Is this OK to do?With PHP5, yes. But it shouldn't be needed. If you use PHP4 packages, just don't set your error reporting level to E_STRICT. -- Bertrand Mansion Mamasam Work : http://www.mamasam.com Blog : http://golgote.freeflux.net