#19222 [Com]: allow_call_time_pass_reference warnings
| From: | gs-bugs-php at gluelogic dot com | Date: | Tue, 29 Oct 2002 06:09:02 +0000 |
| Subject: | #19222 [Com]: allow_call_time_pass_reference warnings | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10319@lists.php.net to get a copy of this message | ||
ID: 19222
Comment by: gs-bugs-php@gluelogic.com
Reported By: gs-bugs-php@gluelogic.com
Status: Open
Bug Type: PEAR related
Operating System: Linux 2.4.18
PHP Version: 4CVS-2002-09-04
New Comment:
Not sure if anyone will see this, but this bug is still present in
4.2.3. Specifically, in 4.2.3 pear/HTML/Form.php line 325, if you
remove the '&' from '&$default' things work fine with
call_time_pass_reference=Off. If you wish to preserve the reference
passing, change line 303 "$default = ''" to "&$default"
Line 179 of pear/Mail/RFC822.php needs an @ sign in front of
'set_time_limit(30);' to quiet error messages when in safe mode (which
doesn't allow use of set_time_limit())
Line 93 of pear/Net/SMTP.php includes 'Net/Socket.php' WHICH IS MISSING
FROM THE SOURCE. Where did Net/Socket.php go?
Previous Comments:
------------------------------------------------------------------------
[2002-09-04 01:19:32] gs-bugs-php@gluelogic.com
There are more than a handful of places in the PEAR libraries where
allow_call_time_pass_reference = Off will trigger warnings and then
pass by value. (These are PHP 4.2.2 libraries and I just checked
php-latest as well)
Since call-time-pass-reference is deprecated, please correct the
libraries distributed with PHP. Thank you.
For a similar bug, please see:
http://bugs.php.net/bug.php?id=17732
-Glenn
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19222&edit=1