|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-22 21:44 UTC] jani@php.net
[2007-07-23 10:09 UTC] michiel at worthit dot nl
[2007-07-23 10:37 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 09:00:02 2025 UTC |
Description: ------------ Using a combined operator on an array within an object causes apache to crash. Assigning the object's property to a temporary variable ($someArray = $bar->someArray) and then working with $someArray works as a workaround. Also this doesn't only apply to just arrays, $foo->bar->value += 1; crashes apache as well. Furthermore, this behaviour is also witnessed under version 5.2.2 and could not be reproduced on Gentoo Linux 2.6.19. Reproduce code: --------------- // Uncomment any lines below to achieve the same result // $bar = new stdClass(); // $bar->someArray = array(); $bar->someArray[0] += 1; Expected result: ---------------- $bar to be an object, with the property $someArray to be an array containing the int value 1 at index 0 : object(stdClass)#1 (1) { ["someArray"]=> array(1) { [0]=> int(1) } } Actual result: -------------- Apache crashes, independent of combined operator or index.