xref: /PHP-8.1/Zend/tests/bug63982.phpt (revision 7aacc705)
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?>
14--EXPECT--
15bool(false)
16bool(false)
17