php-src/Zend/tests/ns_063.phpt
2010-04-04 23:28:20 +00:00

15 lines
186 B
PHP

--TEST--
063: Old-style constructors in namesapces (not supported!)
--FILE--
<?php
namespace Foo;
class Bar {
function Bar() {
echo "ok\n";
}
}
new Bar();
echo "ok\n";
--EXPECT--
ok