php-src/Zend/tests/objects_023.phpt
2008-05-11 03:15:13 +00:00

16 lines
161 B
PHP

--TEST--
Creating instances dynamically
--FILE--
<?php
$arr = array(new stdClass, 'stdClass');
new $arr[0]();
new $arr[1]();
print "ok\n";
?>
--EXPECT--
ok