xref: /PHP-7.4/Zend/tests/bug63982.phpt (revision ded3d984)
1--TEST--
2Bug #63982 (isset() inconsistently produces a fatal error on protected property)
3--FILE--
4<?php
5class Test {
6        protected $protectedProperty;
7}
8
9$test = new Test();
10
11var_dump(isset($test->protectedProperty));
12var_dump(isset($test->protectedProperty->foo));
13--EXPECT--
14bool(false)
15bool(false)
16