mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
16 lines
161 B
Plaintext
16 lines
161 B
Plaintext
|
--TEST--
|
||
|
Creating instances dynamically
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$arr = array(new stdClass, 'stdClass');
|
||
|
|
||
|
new $arr[0]();
|
||
|
new $arr[1]();
|
||
|
|
||
|
print "ok\n";
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
ok
|