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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ladislav at marek dot su
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Thu Oct 22 04:01:24 2020 UTC