summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34712.phpt
blob: 8176292bd2e7fd2044d38ba141bbdfd4d063633f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #34712 (zend.ze1_compatibility_mode = on segfault)
--INI--
zend.ze1_compatibility_mode=1
error_reporting=4095
--FILE--
<?php
class foo {
	function foo(&$obj_ref) {
		$this->bar = &$obj_ref;
	}
}		


class bar {
	function bar() {
		$this->foo = new foo($this);
	}
}

$test = new bar;
echo "ok\n";
?>
--EXPECTF--
Strict Standards: Implicit cloning object of class 'foo' because of 'zend.ze1_compatibility_mode' in %sbug34712.php on line 11

Strict Standards: Implicit cloning object of class 'bar' because of 'zend.ze1_compatibility_mode' in %sbug34712.php on line 15
ok