mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
d88b212ea6
If this error is missing because the rtd_key was renamed to lcname, fetch the class based on lcname and use the class type and cased name from there.
15 lines
238 B
PHP
15 lines
238 B
PHP
--TEST--
|
|
Cannot declare class, because the name is already in use
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
class A {}
|
|
}
|
|
test();
|
|
test();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot declare class A, because the name is already in use in %s on line %d
|