bug30080.phpt 253 B

123456789101112131415161718
  1. --TEST--
  2. Bug #30080 (Passing array or non array of objects)
  3. --FILE--
  4. <?php
  5. class foo {
  6. function __construct($arrayobj) {
  7. var_dump($arrayobj);
  8. }
  9. }
  10. new foo(array(new stdClass));
  11. ?>
  12. --EXPECTF--
  13. array(1) {
  14. [0]=>
  15. object(stdClass)#%d (0) {
  16. }
  17. }