|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-16 11:21 UTC] jani@php.net
[2009-01-16 11:23 UTC] jani@php.net
[2009-12-18 06:04 UTC] svn@php.net
[2009-12-18 06:04 UTC] kalle@php.net
[2020-02-07 06:09 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Fri Feb 13 17:00:01 2026 UTC |
Description: ------------ I have a legacy PHP4 application running under PHP5 with additional components built in Zend Framework. Several of the legacy classes utilize call-time pass-by-reference when invoking their methods, for historical reasons, which is deprecated behavior in PHP5 and displays a message of level E_WARNING, appropriately: Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /path/to/script.php on line ## I have set and confirmed the error reporting bitmask at 6133 (all minus E_NOTICE and E_WARNING) via .htaccess directives (php_value) and PHP's error_reporting() function. However, I continue to see the warning message on my local development machine. Setting the prescribed ini setting seems to be the only way to suppress the warnings. Are these not regular E_WARNING level messages? Reproduce code: --------------- <?php error_reporting(6133); function something ( $argument ) { echo 'I do nothing...'; } // END something $variable = '123'; something(&$variable); Expected result: ---------------- I do nothing... Actual result: -------------- Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [something](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /path/to/script.php on line 11