1
0
mirror of https://github.com/php/php-src.git synced 2026-04-17 13:01:02 +02:00
Files
archived-php-src/tests/classes/constants_error_004.phpt
Nikita Popov 8b8b625d08 Fixed bug #72635
This seems to be a simple oversight, where we did not enable
exceptions. Other constexpr conditions already throw, so there is
no particular reason to stick to a fatal error here.
2018-09-29 14:21:08 +02:00

17 lines
277 B
PHP

--TEST--
Class constant whose initial value references a non-existent class
--FILE--
<?php
class C
{
const c1 = D::hello;
}
$a = new C();
?>
--EXPECTF--
Fatal error: Uncaught Error: Class 'D' not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d