#37144 [Opn->Asn]: PHP crashes trying to assign into property of dide object
| From: | dmitry@php.net | Date: | Thu, 20 Apr 2006 08:31:04 +0000 |
| Subject: | #37144 [Opn->Asn]: PHP crashes trying to assign into property of dide object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96029@lists.php.net to get a copy of this message | ||
ID: 37144
Updated by: dmitry@php.net
Reported By: dmitry@php.net
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: *
PHP Version: 5.1.2
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2006-04-20 08:30:53] dmitry@php.net
Description:
------------
PHP removes a temorary object then tryes to assign into its property.
As a result we have SIGSEGV.
Reproduce code:
---------------
<?php
function foo() {
$x = new stdClass();
$x->bar = array(1);
return $x;
}
foo()->bar[1] = "123";
echo "ok\n";
?>
Expected result:
----------------
ok
Actual result:
--------------
crash and/or memory leaks
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37144&edit=1