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