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 #70910 (extract() breaks variable references) --FILE-- <?php $var = 'original..
Decoded Output download
--TEST--
Bug #70910 (extract() breaks variable references)
--FILE--
<?php
$var = 'original value';
$ref =& $var;
$hash = ['var' => 'new value'];
extract($hash);
var_dump($var === $ref);
?>
--EXPECT--
bool(true)
Did this file decode correctly?
Original Code
--TEST--
Bug #70910 (extract() breaks variable references)
--FILE--
<?php
$var = 'original value';
$ref =& $var;
$hash = ['var' => 'new value'];
extract($hash);
var_dump($var === $ref);
?>
--EXPECT--
bool(true)
Function Calls
None |
Stats
MD5 | 5ca498ccc3c43a62016848a0fcd1edd9 |
Eval Count | 0 |
Decode Time | 82 ms |