mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
14 lines
201 B
PHP
14 lines
201 B
PHP
--TEST--
|
|
Cannot redeclare class
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
class A {}
|
|
}
|
|
test();
|
|
test();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot redeclare class A (previously declared in %s:%d) in %s on line %d
|