Edit report at https://bugs.php.net/bug.php?id=62005&edit=1

 ID:                 62005
 Updated by:         larue...@php.net
 Reported by:        jlee+bug at imvu dot com
-Summary:            unexpected behavior when incrementally assigning to
                     a member of a null object
+Summary:            Invalid memory access when incrementally assigning
                     to a member of a null object
-Status:             Assigned
+Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Ubuntu 10.04.1 LTS
 PHP Version:        master-Git-2012-05-10 (Git)
 Assigned To:        laruence
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

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/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2012-05-12 05:21:43] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=3332943c9d20a8b5e09816b11f38742de0e16085
Log: Fixed Bug #62005 (unexpected behavior when incrementally assigning to a 
member of a null object)

------------------------------------------------------------------------
[2012-05-12 05:20:36] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=3332943c9d20a8b5e09816b11f38742de0e16085
Log: Fixed Bug #62005 (unexpected behavior when incrementally assigning to a 
member of a null object)

------------------------------------------------------------------------
[2012-05-12 05:13:56] larue...@php.net

Automatic comment on behalf of laruence
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=3332943c9d20a8b5e09816b11f38742de0e16085
Log: Fixed Bug #62005 (unexpected behavior when incrementally assigning to a 
member of a null object)

------------------------------------------------------------------------
[2012-05-12 05:00:12] larue...@php.net

more serious thing is: 
<?php
function add_points($player, $points) {
    $player->energy += $points;
    var_dump($player);
}
add_points(NULL, 2);

will output:

NULL

------------------------------------------------------------------------
[2012-05-12 04:55:00] larue...@php.net

I have got a fix, assign to myself.

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


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

    https://bugs.php.net/bug.php?id=62005


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

Reply via email to