#50611 [Com]: Segfault when trying $var =& $non_array_var[some_index]

From: Date: Wed, 30 Dec 2009 08:35:42 +0000
Subject: #50611 [Com]: Segfault when trying $var =& $non_array_var[some_index]
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146203@lists.php.net to get a copy of this message
ID: 50611 Comment by: mikhail dot v dot gavrilov at gmail dot com Reported By: an0nym at narod dot ru Status: Open Bug Type: Reproducible crash Operating System: FreeBSD 7.2-RELEASE-p3 PHP Version: 5.3.1 New Comment: Can confirm this. OS: (Windows 2003 SP2 || Windows XP SP3) && PHP 5.3.1 NTS VC6 Previous Comments: ------------------------------------------------------------------------ [2009-12-30 08:30:22] an0nym at narod dot ru Description: ------------ Segmentation fault occurs when trying to assign a var to a reference onto some index of a string variable. (I know it's dumb, but no segfault should occur, but a Fatal error: ...) Reproduce code: --------------- <?php $value1 = 'foobar'; $value2 = &$value1[0]; Expected result: ---------------- Fatal Error Actual result: -------------- Segmentation Fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50611&edit=1

« previous php.bugs (#146203) next »