#41813 [NEW]: segmentation fault in string to array conversion
| From: | jontsa at amigaone dot cc | Date: | Tue, 26 Jun 2007 15:23:35 +0000 |
| Subject: | #41813 [NEW]: segmentation fault in string to array conversion | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-114290@lists.php.net to get a copy of this message | ||
From: jontsa at amigaone dot cc
Operating system: Gentoo Linux
PHP version: 5.2.3
PHP Bug Type: Scripting Engine problem
Bug description: segmentation fault in string to array conversion
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 bug report at http://bugs.php.net/?id=41813&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41813&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41813&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41813&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41813&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=41813&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=41813&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=41813&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=41813&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=41813&r=support
Expected behavior: http://bugs.php.net/fix.php?id=41813&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=41813&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=41813&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41813&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41813&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41813&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=41813&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=41813&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=41813&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=41813&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=41813&r=mysqlcfg