#19222 [Opn->Fbk]: allow_call_time_pass_reference warnings

From: Date: Fri, 01 Nov 2002 14:39:46 +0000
Subject: #19222 [Opn->Fbk]: allow_call_time_pass_reference warnings
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10419@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: Open +Status: Feedback Bug Type: PEAR related Operating System: Linux 2.4.18 PHP Version: 4CVS-2002-09-04 New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.pear.dev (#10419) next »