1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 14:12:38 +02:00

add test for this TBF bug

This commit is contained in:
Stanislav Malyshev
2005-06-09 17:16:13 +00:00
parent b83a2603b3
commit b2f7dd2f66

28
Zend/tests/bug33277.phpt Normal file
View File

@@ -0,0 +1,28 @@
--TEST--
Bug #33277 (private method accessed by child class)
--FILE--
<?
class foo {
private function bar() {
echo "private!\n";
}
}
class fooson extends foo {
function barson() {
$this->bar();
}
}
class foo2son extends fooson {
function bar() {
echo "public!\n";
}
}
$b = new foo2son();
$b->barson();
?>
--EXPECT--
public!