#41813 [Opn]: segmentation fault in string to array conversion

From: Date: Tue, 26 Jun 2007 15:53:29 +0000
Subject: #41813 [Opn]: segmentation fault in string to array conversion
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114291@lists.php.net to get a copy of this message
ID: 41813 Updated by: sniper@php.net Reported By: jontsa at amigaone dot cc Status: Open Bug Type: Scripting Engine problem Operating System: Gentoo Linux -PHP Version: 5.2.3 +PHP Version: 5.2.4-dev New Comment: Verified. Previous Comments: ------------------------------------------------------------------------ [2007-06-26 15:23:35] jontsa at amigaone dot cc Description: ------------ If you convert a non-empty string to an array with object as value, you get a segmentation fault. Tested on Gentoo Linux and Solaris with Apache 2 and PHP 5.2.3. Theres no segmentation fault when converting for example a scalar variable but an error message as expected. Also tested from shell using: # echo '<?php $foo="50";$foo[0]->bar="xyz"; ?>' | /opt/php5/bin/php Segmentation fault Reproduce code: --------------- $foo="50"; $foo[0]->bar="xyz"; Expected result: ---------------- An error message of some sort. Actual result: -------------- From apache logs: [Tue Jun 26 18:03:23 2007] [notice] child pid 16155 exit signal Segmentation fault (11) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41813&edit=1

« previous php.bugs (#114291) next »