mirror of
https://github.com/php/php-src.git
synced 2026-04-14 03:22:58 +02:00
25 lines
452 B
PHP
25 lines
452 B
PHP
--TEST--
|
|
Bug #70828 (php-fpm 5.6 with opcache crashes when referencing a non-existent constant)
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace test {
|
|
use const nonexistent;
|
|
|
|
class test {
|
|
static function run(){
|
|
var_dump(nonexistent);
|
|
existent;
|
|
}
|
|
}
|
|
}
|
|
|
|
namespace {
|
|
define("test\\existent", "bug!", 1);
|
|
test\test::run();
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Use of undefined constant nonexistent - assumed 'nonexistent' in %sbug70828.php on line %d
|
|
string(11) "nonexistent"
|