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