summaryrefslogtreecommitdiff
path: root/Zend/tests/declare_already_in_use.phpt
blob: c7e4ce8d677b7062338778036e9eefb460982ba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--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