Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004554 [Quercus] major always 05-16-11 03:28 03-22-12 13:41
Reporter pgervaise View Status public  
Assigned To
Priority normal Resolution open Platform
Status acknowledged   OS
Projection none   OS Version
ETA none Fixed in Version Product Version 4.0.14
  Product Build
Summary 0004554: Class variable "not found" if null
Description When setting a class property to NULL then the class property is as non existing so the function __get() is called !

[code]
<?php
    class A {
        public $attr = null;

        public function __get($name) {
            die("UNKNOW ATTRIBUTE : $name");
        }
    }

    $a = new A();
    echo is_null($a->attr) ? "NULL" : "NOT NULL";
?>
[/code]

This code fail (die) with Quercus 4.0.18 but work with Quercus 4.0.11 (and work with PHP).
Steps To Reproduce
Additional Information
Attached Files  bug_class_attr_null.php [^] (184 bytes) 05-16-11 03:28

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
05-16-11 03:28 pgervaise New Issue
05-16-11 03:28 pgervaise File Added: bug_class_attr_null.php
07-06-11 08:37 domdorn Assigned To  => domdorn
07-06-11 08:37 domdorn Status new => acknowledged
03-22-12 13:41 domdorn Assigned To domdorn =>


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker