Bug #62005 [Asn->Csd]: Invalid memory access when incrementally assigning to a member of a null object
| From: | laruence@php.net | Date: | Sat, 12 May 2012 05:22:26 +0000 |
| Subject: | Bug #62005 [Asn->Csd]: Invalid memory access when incrementally assigning to a member of a null object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-170397@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62005&edit=1
ID: 62005
Updated by: laruence@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] laruence@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] laruence@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] laruence@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] laruence@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] laruence@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