From: Stanislav Malyshev Date: Thu, 9 Jun 2005 16:51:14 +0000 (+0000) Subject: add test for this (to be fixed) bug X-Git-Tag: php-5.0.5RC1~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=af2cbccc893d651880eca8b0a6f9b8489194c641;p=php add test for this (to be fixed) bug --- diff --git a/Zend/tests/bug33277.phpt b/Zend/tests/bug33277.phpt new file mode 100644 index 0000000000..17e6337f6f --- /dev/null +++ b/Zend/tests/bug33277.phpt @@ -0,0 +1,28 @@ +--TEST-- +Bug #33277 (private method accessed by child class) +--FILE-- +bar(); + } +} + +class foo2son extends fooson { + + function bar() { + echo "public!\n"; + } +} + +$b = new foo2son(); +$b->barson(); +?> +--EXPECT-- +public!