403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.224.2.133
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-php80/root/usr/share/tests/pecl/igbinary/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/cpanel/ea-php80/root/usr/share/tests/pecl/igbinary/tests/igbinary_060.phpt
--TEST--
Igbinary_unserialize_header warning
--SKIPIF--
--FILE--
<?php
function my_error_handler($errno, $errstr) {
	printf("Logged: $errstr\n");
}
error_reporting(E_ALL);
set_error_handler('my_error_handler');

function test_igbinary_unserialize($data) {
	$unserialized = igbinary_unserialize($data);
	if ($unserialized !== null) {
		printf("Expected null, got %s\n", var_export($unserialized, true));
	}
}

test_igbinary_unserialize("a:0:{}");
test_igbinary_unserialize('\\""\\{}');
test_igbinary_unserialize("\x00\x00\x00\x01");
test_igbinary_unserialize("\x00\x00\x00\x03\x00");
test_igbinary_unserialize("\x00\x00\x00\xff\x00");
test_igbinary_unserialize("\x02\x00\x00\x00\x00");
--EXPECT--
Logged: igbinary_unserialize_header: unsupported version: "a:0:"..., should begin with a binary version header of "\x00\x00\x00\x01" or "\x00\x00\x00\x02"
Logged: igbinary_unserialize_header: unsupported version: "\\\"\"\\"..., should begin with a binary version header of "\x00\x00\x00\x01" or "\x00\x00\x00\x02"
Logged: igbinary_unserialize_header: expected at least 5 bytes of data, got 4 byte(s)
Logged: igbinary_unserialize_header: unsupported version: 3, should be 1 or 2
Logged: igbinary_unserialize_header: unsupported version: 255, should be 1 or 2
Logged: igbinary_unserialize_header: unsupported version: 33554432, should be 1 or 2 (wrong endianness?)

Youez - 2016 - github.com/yon3zu
LinuXploit