|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2010-11-19 20:15 UTC] public at grik dot net
Description:
------------
Segmentation fault when extending SplFixedArray and working with it as with an array.
Test script:
---------------
<?php
class obj extends SplFixedArray{
public function offsetSet($offset, $value) {}
}
$obj = new obj;
$obj[]=2;
Expected result:
----------------
nothing
Actual result:
--------------
Segmentation fault
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
Program received signal SIGSEGV, Segmentation fault. 0x00000000005cbfcf in spl_fixedarray_object_write_dimension (object=0x80232c818, offset=0x0, value=0x8023310a8) at /usr/ports/lang/php5/work/php-5.3.3/ext/spl/spl_fixedarray.c:409 409 in /usr/ports/lang/php5/work/php-5.3.3/ext/spl/spl_fixedarray.c