You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Copy file name to clipboardExpand all lines: Zend/tests/constants_005.phpt
+3-4
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@
2
2
Persistent case insensitive and user defined constants
3
3
--FILE--
4
4
<?php
5
-
var_dump(ZEND_THREAD_safe);
5
+
var_dump(defined('ZEND_THREAD_safe'));
6
6
define("ZEND_THREAD_safe", 123);
7
7
var_dump(ZEND_THREAD_safe);
8
8
?>
9
-
--EXPECTF--
10
-
Warning: Use of undefined constant ZEND_THREAD_safe - assumed 'ZEND_THREAD_safe' (this will throw an Error in a future version of PHP) in %s on line %d
0 commit comments