php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58549 Cannot access to object properties when extending HaruDoc class
Submitted: 2009-02-13 08:25 UTC Modified: 2009-02-13 09:00 UTC
From: ladislav at marek dot su Assigned:
Status: Closed Package: haru (PECL)
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 - 1 = ?
Subscribe to this entry?

 
 [2009-02-13 08:25 UTC] ladislav at marek dot su
Description:
------------
Is not possible to access added properties when extends 
'HaruDoc' class.

PHP version is 5.2.8.

Reproduce code:
---------------
class MyHaruDoc extends HaruDoc
{
    public $myProperty = 'Ok';
}

$haru = new MyHaruDoc;
var_dump($haru->myProperty);

Expected result:
----------------
string(2) "Ok"

Actual result:
--------------
Notice: Undefined property: MyHaruDoc::$myProperty in %s on 
line %i
NULL

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-13 09:00 UTC] tony at daylessday dot org
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Fixed in CVS, thanks.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 20:01:28 2025 UTC