summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30080.phpt
blob: d1d6302e85fcfd9948e1e35e5288564df6d25e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #30080 (Passing array or non array of objects)
--FILE--
<?php
class foo {
  function __construct($arrayobj) {
    var_dump($arrayobj);
  }
}

new foo(array(new stdClass));
?>
--EXPECTF--
array(1) {
  [0]=>
  object(stdClass)#%d (0) {
  }
}