mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
16 lines
306 B
PHP
16 lines
306 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)
|