summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30080.phpt
blob: 061f2b29304a67dddccd027fabf7785cadaf94ff (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 foo($arrayobj) {
    var_dump($arrayobj);
  } 
} 

new foo(array(new stdClass));
?>
--EXPECT--
array(1) {
  [0]=>
  object(stdClass)#2 (0) {
  }
}