diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-31 12:25:51 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-01-31 13:52:06 +0100 |
commit | aad39879f2d2e89de105c4f87d334ee129b4321c (patch) | |
tree | c4a0615c40ddaa3596e1c29e4ccbcdf2ae197c05 /ext/standard/tests/array/count_recursive.phpt | |
parent | 3d39479f4d7c86c66aa92fc5d0d97fb660109ee9 (diff) | |
download | php-git-aad39879f2d2e89de105c4f87d334ee129b4321c.tar.gz |
Remove bareword fallback for constants
Access to undefined constants will now always result in an Error
exception being thrown.
This required quite a few test changes, because there were many
buggy tests that unintentionally used bareword fallback in combination
with error suppression.
Diffstat (limited to 'ext/standard/tests/array/count_recursive.phpt')
-rw-r--r-- | ext/standard/tests/array/count_recursive.phpt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/tests/array/count_recursive.phpt b/ext/standard/tests/array/count_recursive.phpt index 175cfe7118..6d81c16621 100644 --- a/ext/standard/tests/array/count_recursive.phpt +++ b/ext/standard/tests/array/count_recursive.phpt @@ -117,7 +117,7 @@ var_dump( count() ); // No. of args = 0 var_dump( count(array(), COUNT_NORMAL, 100) ); // No. of args > expected /* Testing Invalid type arguments */ -var_dump( count("string", ABCD) ); +var_dump( count("string", "ABCD") ); var_dump( count(100, "string") ); var_dump( count(array(), "") ); @@ -237,8 +237,6 @@ NULL Warning: count() expects at most 2 parameters, 3 given in %s on line %d NULL -Warning: Use of undefined constant ABCD - assumed 'ABCD' (this will throw an Error in a future version of PHP) in %s on line %d - Warning: count() expects parameter 2 to be int, %s given in %s on line %d NULL |