ID:               24436
 Comment by:       hongnk at hotmail dot com
 Reported By:      Nico dot Laus dot 2002 at gmx dot de
 Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: WinXP SP1
 PHP Version:      5CVS-2003-07-01 (dev)
 Assigned To:      sterling
 New Comment:

I don't know if the following is related to this bug:

class A {
function m(){
        if(isset($this->x)){do nothing}
}
}

$t=new A();
var_dump($t);

expected: empty object
actual result: object(a)#1 (1) { ["x"]=> NULL }

Note that isset($this->x) not even need to be in constructor.

Tested with PHP5B2 as apache module under Windows.


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

[2003-07-22 08:50:14] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.



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

[2003-07-09 06:42:30] [EMAIL PROTECTED]

Sterling, please explain this a bit better. (explain why it can't be
fixed and make this "Wont fix" then :)

This clearly is BC breakage at best..


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

[2003-07-09 06:26:47] Nico dot Laus dot 2002 at gmx dot de

it cannot be *correct* that it one time shows errors and the other time
it doesn't show any!

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

[2003-07-08 21:25:50] [EMAIL PROTECTED]

You are right, its not fixed, but it is *correct* due to the way the
new object model works.  bogusing ...

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

[2003-07-08 20:44:24] [EMAIL PROTECTED]

No errors with PHP 4.3.3RC2-dev but with latest PHP 5 CVS I do get
errors. Bug NOT fixed, sterling.. :)


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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/24436

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

Reply via email to