Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: f8d1fc62fa
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (30 sloc) 0.466 kB
--TEST--
Redeclare inherited private property as public static.
--FILE--
<?php
class A
{
private $p = "A::p";
function showA()
{
echo $this->p . "\n";
}
}
class B extends A
{
public static $p = "B::p (static)";
static function showB()
{
echo self::$p . "\n";
}
}
$a = new A;
$a->showA();
$b = new B;
$b->showA();
B::showB();
?>
--EXPECTF--
A::p
A::p
B::p (static)
Jump to Line
Something went wrong with that request. Please try again.