summaryrefslogtreecommitdiff
path: root/Zend/tests/bug30080.phpt
blob: bd8401e1bed69c9afddb7d3ac0365b2bfcdf8c47 (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) {
  }
}