mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
aad39879f2
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.
12 lines
214 B
PHP
12 lines
214 B
PHP
--TEST--
|
|
Persistent case insensitive and user defined constants
|
|
--FILE--
|
|
<?php
|
|
var_dump(defined('ZEND_THREAD_safe'));
|
|
define("ZEND_THREAD_safe", 123);
|
|
var_dump(ZEND_THREAD_safe);
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
int(123)
|