mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
7aacc705d0
Closes GH-5958
17 lines
309 B
PHP
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)
|