mirror of
https://github.com/php/php-src.git
synced 2024-12-28 11:20:29 +08:00
8d82e96103
- Fix constants_error_004.phpt (closes bug #51901)
14 lines
219 B
PHP
14 lines
219 B
PHP
--TEST--
|
|
Class constant whose initial value refereces a non-existent class
|
|
--FILE--
|
|
<?php
|
|
class C
|
|
{
|
|
const c1 = D::hello;
|
|
}
|
|
|
|
$a = new C();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Class 'D' not found in %s on line %d
|