mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
16 lines
307 B
PHP
16 lines
307 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));
|
|
--EXPECTF--
|
|
bool(false)
|
|
bool(false)
|