ID: 40159 Updated by: [EMAIL PROTECTED] Reported By: dominik dot bulaj at gmail dot com -Status: No Feedback +Status: Bogus Bug Type: Class/Object related Operating System: Debian PHP Version: 5.2.0 New Comment:
Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. Previous Comments: ------------------------------------------------------------------------ [2007-02-22 06:21:48] bugs dot php at mobocracy dot net BTW, this appears to be fixed with eaccelerator svn snapshot 301. -Blake ------------------------------------------------------------------------ [2007-02-22 06:16:58] bugs dot php at mobocracy dot net I am getting a similar issue with PHP 5.2.1, Linux, with eAccelerator. I have two classes like: class Foo { protected $item; function __construct() { $this->item = 'Foo'; } } class Bar extends Foo {} When I do: $c = new Bar(); I get the same fatal error as described in the original report. When I disable eaccelerator, this goes away. I will submit a bug to eaccelerator. ------------------------------------------------------------------------ [2007-01-26 01:00:00] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2007-01-18 11:22:32] [EMAIL PROTECTED] Cannot reproduce. ------------------------------------------------------------------------ [2007-01-18 11:20:19] dominik dot bulaj at gmail dot com Description: ------------ I got 3 classes: abstract class BlogApi { protected $blogUrl = false; // other properties public function setup($blogUrl, $username, $password, $blogId = 1) { $this->blogUrl = $blogUrl; $this->username = $username; $this->password = $password; $this->blogId = $blogId; return $this; } // rest of methods } abstract class BloggerApi extends BlogApi { // some methods specyfic for BloggerApi } class WordPress extends BloggerApi { // some methods public function publish() { return $this->publishToBlog(rtrim($this->blogUrl, '/').'/xmlrpc.php'); } } Now when I start with: $wp = new WordPress; $wp->setup('some_url', 'usr_name', 'pwd', 1); // another method to set-up post subject & body $wp->publish(); I got error: Fatal error: Cannot access protected property WordPress::$blogUrl in .... Strange is, that code worked well in PHP 5.1.6-5 on Debian. Actual result: -------------- Fatal error: Cannot access protected property WordPress::$blogUrl in ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40159&edit=1