PHP crashes trying to assign into property of dide object
| Bug #37144 | PHP crashes trying to assign into property of dide object | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-04-20 08:30 UTC | Modified: | 2006-07-19 14:05 UTC | ||
| From: | dmitry@php.net | Assigned: | dmitry (profile) | ||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.1.2 | OS: | * | ||
| Private report: | No | CVE-ID: | None | ||
[2006-04-20 08:30 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-04-20 13:09 UTC] smlerman at gmail dot com
[2006-04-20 16:58 UTC] dmitry@php.net