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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 12:01:32 2024 UTC