php-src/Zend/tests/bug63982.phpt
2020-08-09 22:03:36 +02:00

17 lines
309 B
PHP

--TEST--
Bug #63982 (isset() inconsistently produces a fatal error on protected property)
--FILE--
<?php
class Test {
protected $protectedProperty;
}
$test = new Test();
var_dump(isset($test->protectedProperty));
var_dump(isset($test->protectedProperty->foo));
?>
--EXPECT--
bool(false)
bool(false)