php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59565 property failures when extending class
Submitted: 2011-01-07 11:41 UTC Modified: 2011-01-08 17:28 UTC
From: guenter at grodotzki dot ph Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.3.2 OS: Linux Debian Lenny
Private report: No CVE-ID: None
 [2011-01-07 11:41 UTC] guenter at grodotzki dot ph
Description:
------------
I am having the same problem as described here: http://stackoverflow.com/questions/4103449/php-weirdness-extending-imagick-class

* Linux Debian 5.0 (newest updates/upgrades)
* PHP-FPM 5.3.4 / Imagick 3.0.1
* Lighttpd 1.5 (svn)

When extending Imagick, e.g.

"class imagehandler extends Imagick"

I can not write my properties - no matter what visibility they have.


Reproduce code:
---------------
class db_image extends IMagick {

private $data;

function __construct( $id = null ){
    parent::__construct();

    $this->data = 'some plain text';

    echo $this->data;
}


Expected result:
----------------
some plain text

Actual result:
--------------
NULL

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-08 17:28 UTC] mkoppanen@php.net
This bug has been fixed in SVN.

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.

Hi,

should be fixed in trunk now. See tests/bug21229.phpt
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC