- Fix test and tuned error message

This commit is contained in:
Jani Taskinen 2007-09-20 14:11:32 +00:00
parent c932082f7b
commit ba144fd417
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
--TEST--
passing arguments by ref to a method handled by __call()
--INI--
allow_call_time_pass_reference=1
--FILE--
<?php

View File

@ -1552,11 +1552,11 @@ void zend_do_pass_param(znode *param, zend_uchar op, int offset TSRMLS_DC)
if (original_op==ZEND_SEND_REF
&& !CG(allow_call_time_pass_reference)) {
zend_error(E_COMPILE_WARNING,
"Call-time pass-by-reference has been deprecated; "
"Call-time pass-by-reference has been deprecated; "
"If you would like to pass it by reference, modify the declaration of %s(). "
"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. ",
(function_ptr?function_ptr->common.function_name:"[runtime function name]"));
"allow_call_time_pass_reference to true in your INI file",
(function_ptr ? function_ptr->common.function_name : "[runtime function name]"));
}
if (function_ptr) {