xref: /PHP-5.6/Zend/tests/bug70828.phpt (revision 227c898c)
1--TEST--
2Bug #70828 (php-fpm 5.6 with opcache crashes when referencing a non-existent constant)
3--FILE--
4<?php
5
6namespace test {
7	use const nonexistent;
8
9	class test {
10		static function run(){
11			var_dump(nonexistent);
12			existent;
13		}
14	}
15}
16
17namespace {
18	define("test\\existent", "bug!", 1);
19	test\test::run();
20}
21?>
22--EXPECTF--
23Notice: Use of undefined constant nonexistent - assumed 'nonexistent' in %sbug70828.php on line %d
24string(11) "nonexistent"
25