xref: /PHP-7.2/Zend/tests/bug75420.phpt (revision bc59289b)
1--TEST--
2Bug #75420 (Crash when modifing property name in __isset for BP_VAR_IS)
3--FILE--
4<?php
5
6class Test {
7	public function __isset($x) { $GLOBALS["name"] = 24; return true; }
8public function __get($x) { var_dump($x); return 42; }
9}
10
11$obj = new Test;
12$name = "foo";
13var_dump($obj->$name ?? 12);
14?>
15--EXPECT--
16string(3) "foo"
17int(42)
18