Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #64106: Segfault on SplFixedArray[][x] = y when extended --FILE-- <?php clas..

Decoded Output download

--TEST--
Bug #64106: Segfault on SplFixedArray[][x] = y when extended
--FILE--
<?php

class MyFixedArray extends SplFixedArray {
    public function offsetGet($offset): mixed { var_dump($offset);  return null; }
}

$array = new MyFixedArray(10);
$array[][1] = 10;

?>
--EXPECTF--
NULL

Notice: Indirect modification of overloaded element of MyFixedArray has no effect in %s on line %d

Did this file decode correctly?

Original Code

--TEST--
Bug #64106: Segfault on SplFixedArray[][x] = y when extended
--FILE--
<?php

class MyFixedArray extends SplFixedArray {
    public function offsetGet($offset): mixed { var_dump($offset);  return null; }
}

$array = new MyFixedArray(10);
$array[][1] = 10;

?>
--EXPECTF--
NULL

Notice: Indirect modification of overloaded element of MyFixedArray has no effect in %s on line %d

Function Calls

None

Variables

None

Stats

MD5 ff0d7ec232c905cacbf68defbe4b917c
Eval Count 0
Decode Time 95 ms