1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

Improve undefined variable error messages

Closes GH-5312
This commit is contained in:
Máté Kocsis
2020-03-30 17:23:03 +02:00
parent 6bf483a94a
commit 36935e42ea
126 changed files with 400 additions and 400 deletions
@@ -83,7 +83,7 @@ array(2) {
--> exchangeArray() with no arg:
Exception: ArrayObject::exchangeArray() expects exactly 1 parameter, 0 given
Warning: Undefined variable: copy in %s on line %d
Warning: Undefined variable $copy in %s on line %d
object(ArrayObject)#2 (1) {
["storage":"ArrayObject":private]=>
object(C)#3 (2) {
@@ -105,7 +105,7 @@ NULL
--> exchangeArray() with bad arg type:
Exception:Passed variable is not an array or object
Warning: Undefined variable: copy in %s on line %d
Warning: Undefined variable $copy in %s on line %d
object(ArrayObject)#3 (1) {
["storage":"ArrayObject":private]=>
object(C)#2 (2) {