ID: 28817
Comment by: profic at kursknet dot ru
Reported By: D dot Kingma at jool dot nl
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: *
PHP Version: 5CVS-2004-06-17 (dev)
New Comment:
php5.0RC3
the same problem.
But I discovered, that the second assignment do things right
e.g.:
class a extends DOMDocument {
private $prop = array ();
public function __construct () {parent::__construct ()}
public function func () {
$this->prop[] = 'test';
$this->prop[] = 'test';
}
}
$o = new a ();
$o->func ();
var_dump ($o);
Previous Comments:
------------------------------------------------------------------------
[2004-06-17 11:37:24] D dot Kingma at jool dot nl
Description:
------------
When extending the domDocument class its not possible anymore to fill
any class array properties (other properties can still be changed)
Reproduce code:
---------------
class z extends domDocument{
/** variable can have name */
var $y=Array();
var $x;
function __construct(){
$this->y['doh']='me';
$x='aaaaahhhh';
print_r($this->y);
echo $x;
}
}
$z=new z();
Expected result:
----------------
Array ( [doh] => me ) aaaaahhhh
Actual result:
--------------
Array ( ) aaaaahhhh
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28817&edit=1