403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.20.233.31
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/cpanel/ea-php74/root/usr/share/tests/pecl/igbinary/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cpanel/ea-php74/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) {
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit