1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00
Files
archived-php-src/Zend/tests/bug30080.phpt
2015-03-31 17:55:27 +02:00

19 lines
259 B
PHP

--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) {
}
}