php-src/Zend/tests/bug30080.phpt
Nikita Popov 0ec49bba22 AST stage 1.9
Expressions (mostly) use the AST
2014-06-19 13:48:35 +02:00

19 lines
251 B
PHP

--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));
?>
--EXPECTF--
array(1) {
[0]=>
object(stdClass)#%d (0) {
}
}