php-src/Zend/tests/bug30080.phpt

19 lines
259 B
Plaintext
Raw Normal View History

--TEST--
Bug #30080 (Passing array or non array of objects)
--FILE--
<?php
class foo {
2015-03-31 14:10:22 +00:00
function __construct($arrayobj) {
var_dump($arrayobj);
}
}
new foo(array(new stdClass));
?>
--EXPECTF--
array(1) {
[0]=>
object(stdClass)#%d (0) {
}
}