xref: /PHP-5.6/Zend/tests/bug30080.phpt (revision 610c7fbe)
1--TEST--
2Bug #30080 (Passing array or non array of objects)
3--FILE--
4<?php
5class foo {
6  function foo($arrayobj) {
7    var_dump($arrayobj);
8  }
9}
10
11new foo(array(new stdClass));
12?>
13--EXPECT--
14array(1) {
15  [0]=>
16  object(stdClass)#2 (0) {
17  }
18}
19