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