mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
16 lines
160 B
PHP
16 lines
160 B
PHP
--TEST--
|
|
Creating instances dynamically
|
|
--FILE--
|
|
<?php
|
|
|
|
$arr = array(new stdClass, 'stdClass');
|
|
|
|
new $arr[0]();
|
|
new $arr[1]();
|
|
|
|
print "ok\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
ok
|