#19222 [Fbk->Csd]: allow_call_time_pass_reference warnings
| From: | mj@php.net | Date: | Fri, 01 Nov 2002 17:28:00 +0000 |
| Subject: | #19222 [Fbk->Csd]: allow_call_time_pass_reference warnings | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10427@lists.php.net to get a copy of this message | ||
ID: 19222
Updated by: mj@php.net
Reported By: gs-bugs-php@gluelogic.com
-Status: Feedback
+Status: Closed
Bug Type: PEAR related
Operating System: Linux 2.4.18
PHP Version: 4CVS-2002-09-04
Previous Comments:
------------------------------------------------------------------------
[2002-11-01 09:26:47] gs-bugs-php@gluelogic.com
Yes, this fixes my problems. Thank you, kindly.
I did not notice any documentation about using "pear install" in the
PHP 4.2.2 distribution, and as I had gone from RedHat RPM of 4.1.2 to a
source compile of 4.2.2, Net/Socket.php just disappeared from my point
of view.
Wouldn't it make sense to either distribute Net/Socket.php or to remove
SMTP.php, too, which require it (and, of course, document how to add
pear extensions to your install).
Again, thank you for fixing these problems. Please close out this bug.
------------------------------------------------------------------------
[2002-11-01 08:39:46] mj@php.net
I removed the & in front of $default and also fixed the problem in
RFC822.php.
Net_Socket has to be installed via "pear install Net_Socket" from your
command line.
Do these changes fix all your problems?
------------------------------------------------------------------------
[2002-10-29 00:09:02] gs-bugs-php@gluelogic.com
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?
------------------------------------------------------------------------
[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