mirror of
https://github.com/php/php-src.git
synced 2025-01-26 13:44:22 +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.
23 lines
487 B
PHP
23 lines
487 B
PHP
--TEST--
|
|
Bug #71843 (null ptr deref ZEND_RETURN_SPEC_CONST_HANDLER (zend_vm_execute.h:3479))
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=0xFFFFBFFF
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('Zend OPcache')) die("skip"); ?>
|
|
--FILE--
|
|
<?php
|
|
define('E', 'E');
|
|
define('R', 'R');
|
|
define('See', 'See');
|
|
0 & ~E & ~R;
|
|
6 && ~See
|
|
?>
|
|
okey
|
|
--EXPECTF--
|
|
Warning: A non-numeric value encountered in %s on line %d
|
|
|
|
Warning: A non-numeric value encountered in %s on line %d
|
|
okey
|