dmitry          Thu Jan 10 09:38:41 2008 UTC

  Modified files:              
    /ZendEngine2        zend_execute_API.c 
    /php-src/ext/reflection/tests       bug42976.phpt 
    /php-src/ext/standard/tests/general_functions       bug41970.phpt 
  Log:
  Added missing warning message
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_execute_API.c?r1=1.427&r2=1.428&diff_format=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.427 
ZendEngine2/zend_execute_API.c:1.428
--- ZendEngine2/zend_execute_API.c:1.427        Mon Dec 31 07:12:06 2007
+++ ZendEngine2/zend_execute_API.c      Thu Jan 10 09:38:40 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_execute_API.c,v 1.427 2007/12/31 07:12:06 sebastian Exp $ */
+/* $Id: zend_execute_API.c,v 1.428 2008/01/10 09:38:40 dmitry Exp $ */
 
 #include <stdio.h>
 #include <signal.h>
@@ -1058,6 +1058,11 @@
                                                zval_ptr_dtor(&method_name);
                                                zval_ptr_dtor(&params_array);
                                        }
+                                       zend_error(E_WARNING, "Parameter %d to 
%v%s%v() expected to be a reference, value given",
+                                               i+1,
+                                               
EX(function_state).function->common.scope ? 
EX(function_state).function->common.scope->name : EMPTY_ZSTR,
+                                               
EX(function_state).function->common.scope ? "::" : "",
+                                               
EX(function_state).function->common.function_name);
                                        return FAILURE;
                                }
                                ALLOC_ZVAL(new_zval);
http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/tests/bug42976.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/reflection/tests/bug42976.phpt
diff -u php-src/ext/reflection/tests/bug42976.phpt:1.2 
php-src/ext/reflection/tests/bug42976.phpt:1.3
--- php-src/ext/reflection/tests/bug42976.phpt:1.2      Sun Oct 28 13:44:09 2007
+++ php-src/ext/reflection/tests/bug42976.phpt  Thu Jan 10 09:38:40 2008
@@ -26,9 +26,26 @@
 --EXPECTF--    
 string(9) "x.changed"
 
-Warning: Invocation of C's constructor failed in %s/bug42976.php on line %d
+Warning: Parameter 1 to C::__construct() expected to be a reference, value 
given in %sbug42976.php on line 15
+
+Warning: Invocation of C's constructor failed in %sbug42976.php on line 15
 string(10) "x.original"
 
-Warning: Invocation of C's constructor failed in %s/bug42976.php on line %d
+Warning: Parameter 1 to C::__construct() expected to be a reference, value 
given in %sbug42976.php on line 18
+
+Warning: Invocation of C's constructor failed in %sbug42976.php on line 18
 string(10) "x.original"
 Done
+--UEXPECTF--   
+unicode(9) "x.changed"
+
+Warning: Parameter 1 to C::__construct() expected to be a reference, value 
given in %sbug42976.php on line 15
+
+Warning: Invocation of C's constructor failed in %sbug42976.php on line 15
+unicode(10) "x.original"
+
+Warning: Parameter 1 to C::__construct() expected to be a reference, value 
given in %sbug42976.php on line 18
+
+Warning: Invocation of C's constructor failed in %sbug42976.php on line 18
+unicode(10) "x.original"
+Done
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/general_functions/bug41970.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/standard/tests/general_functions/bug41970.phpt
diff -u php-src/ext/standard/tests/general_functions/bug41970.phpt:1.1 
php-src/ext/standard/tests/general_functions/bug41970.phpt:1.2
--- php-src/ext/standard/tests/general_functions/bug41970.phpt:1.1      Thu Jul 
12 09:19:04 2007
+++ php-src/ext/standard/tests/general_functions/bug41970.phpt  Thu Jan 10 
09:38:41 2008
@@ -12,13 +12,16 @@
 
 echo "Done\n";
 ?>
---EXPECTF--    
+--EXPECTF--
+Warning: Parameter 1 to sort() expected to be a reference, value given in 
%sbug41970.php on line 5
 NULL
 
-Notice: Array to string conversion in %s on line %d
+Notice: Array to string conversion in %sbug41970.php on line 6
 int(5)
+
+Warning: Parameter 1 to sort() expected to be a reference, value given in 
%sbug41970.php on line 7
 NULL
 
-Notice: Array to string conversion in %s on line %d
+Notice: Array to string conversion in %sbug41970.php on line 8
 int(5)
 Done

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to