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 #42208 (substr_replace() crashes when the same array is passed more than once..

Decoded Output download

--TEST--
Bug #42208 (substr_replace() crashes when the same array is passed more than once)
--FILE--
<?php
$a = array(1, 2);
$c = $a;
var_dump(substr_replace($a, 1, 1, $c));
?>
--EXPECT--
array(2) {
  [0]=>
  string(2) "11"
  [1]=>
  string(2) "21"
}

Did this file decode correctly?

Original Code

--TEST--
Bug #42208 (substr_replace() crashes when the same array is passed more than once)
--FILE--
<?php
$a = array(1, 2);
$c = $a;
var_dump(substr_replace($a, 1, 1, $c));
?>
--EXPECT--
array(2) {
  [0]=>
  string(2) "11"
  [1]=>
  string(2) "21"
}

Function Calls

substr_replace 1

Variables

$a [{'key': 0, 'value': 1}, {'key': 1, 'value': 2}]
$c [{'key': 0, 'value': 1}, {'key': 1, 'value': 2}]

Stats

MD5 654b0a8f06dc57b62ea1e138eebdbda0
Eval Count 0
Decode Time 97 ms