1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00
Files
archived-php-src/tests/classes/constants_error_004.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

17 lines
275 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