Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #80564: ReflectionProperty::__toString() renders current value, not default v..

Decoded Output download

--TEST--
Bug #80564: ReflectionProperty::__toString() renders current value, not default value
--FILE--
<?php

class A {
	public static $x = 'default';
}

A::$x = new stdClass;

$rp = new ReflectionProperty('A', 'x');
echo $rp;

?>
--EXPECT--
Property [ public static $x = 'default' ]

Did this file decode correctly?

Original Code

--TEST--
Bug #80564: ReflectionProperty::__toString() renders current value, not default value
--FILE--
<?php

class A {
	public static $x = 'default';
}

A::$x = new stdClass;

$rp = new ReflectionProperty('A', 'x');
echo $rp;

?>
--EXPECT--
Property [ public static $x = 'default' ]

Function Calls

None

Variables

None

Stats

MD5 32d0ae5b4c699d93dd74a794883c7b40
Eval Count 0
Decode Time 74 ms