mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
19 lines
249 B
Plaintext
19 lines
249 B
Plaintext
|
--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) {
|
||
|
}
|
||
|
}
|