|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-12-30 08:30 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 06:00:01 2025 UTC |
Also can confirm this. Tried to debug with gdb under FreeBSD with php 5.3.1: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x29f01040 (LWP 100325)] 0x0841c6de in ZEND_FETCH_DIM_W_SPEC_CV_CONST_HANDLER (execute_data=0x2e203020) at zend_vm_execute.h:23571 23571 Z_DELREF_PP(EX_T(opline->result.u.var).var.ptr_ptr); (gdb) bt full #0 0x0841c6de in ZEND_FETCH_DIM_W_SPEC_CV_CONST_HANDLER (execute_data=0x2e203020) at zend_vm_execute.h:23571 opline = (zend_op *) 0x29f21e4c container = Variable "container" is not available.