mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
0ec49bba22
Expressions (mostly) use the AST
19 lines
251 B
PHP
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) {
|
|
}
|
|
}
|