ID:               34462
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bduclaux at yahoo dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Class/Object related
 Operating System: Fedora Core 4
 PHP Version:      5.0.5
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Works fine with PHP 5.1-dev.


Previous Comments:
------------------------------------------------------------------------

[2005-09-11 14:36:48] bduclaux at yahoo dot com

Description:
------------
PHP 5.05 modifies the handling of isset($this->$x) when $x is not set.

This breaks many existing scripts, and is not properly documented IMHO.

Reproduce code:
---------------
<?php
        class A {
                function A() {
                        $x='';
                        var_dump(isset($this->$x));
                        }
        }

        new A();
?>

With php 5.05 :
Fatal error: Cannot access empty property in /home/sysop/test.php on
line 5

With php 5.04:
bool(false)




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34462&edit=1

Reply via email to