mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
15 lines
186 B
PHP
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
|