#50611 [NEW]: Segfault when trying $var =& $non_array_var[some_index]
| From: | an0nym at narod dot ru | Date: | Wed, 30 Dec 2009 08:30:22 +0000 |
| Subject: | #50611 [NEW]: Segfault when trying $var =& $non_array_var[some_index] | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-146202@lists.php.net to get a copy of this message | ||
From: an0nym at narod dot ru
Operating system: FreeBSD 7.2-RELEASE-p3
PHP version: 5.3.1
PHP Bug Type: Reproducible crash
Bug description: Segfault when trying $var =& $non_array_var[some_index]
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 bug report at http://bugs.php.net/?id=50611&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50611&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50611&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50611&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50611&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50611&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50611&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50611&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50611&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50611&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50611&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50611&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50611&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50611&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50611&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50611&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50611&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50611&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50611&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50611&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50611&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50611&r=mysqlcfg