summaryrefslogtreecommitdiff
path: root/Zend/tests/objects_023.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/objects_023.phpt')
-rw-r--r--Zend/tests/objects_023.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/objects_023.phpt b/Zend/tests/objects_023.phpt
new file mode 100644
index 0000000000..042a20e9d8
--- /dev/null
+++ b/Zend/tests/objects_023.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Creating instances dynamically
+--FILE--
+<?php
+
+$arr = array(new stdClass, 'stdClass');
+
+new $arr[0]();
+new $arr[1]();
+
+print "ok\n";
+
+?>
+--EXPECT--
+ok