bug70288.phpt 277 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #70288 (Apache crash related to ZEND_SEND_REF)
  3. --FILE--
  4. <?php
  5. class A {
  6. public function __get($name) {
  7. return new Stdclass();
  8. }
  9. }
  10. function test(&$obj) {
  11. var_dump($obj);
  12. }
  13. $a = new A;
  14. test($a->dummy);
  15. ?>
  16. --EXPECTF--
  17. object(stdClass)#%d (0) {
  18. }