mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
Merge branch 'PHP-5.5'
* PHP-5.5: Deprecate ext/mysql.
This commit is contained in:
commit
ac0fb01a21
@ -731,6 +731,10 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
|
||||
zend_bool free_host=0, new_link=0;
|
||||
long connect_timeout;
|
||||
|
||||
php_error_docref(NULL TSRMLS_CC,
|
||||
E_DEPRECATED,
|
||||
"The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead");
|
||||
|
||||
#if !defined(MYSQL_USE_MYSQLND)
|
||||
if ((MYSQL_VERSION_ID / 100) != (mysql_get_client_version() / 100)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING,
|
||||
|
@ -29,5 +29,8 @@ var_dump($test);
|
||||
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
|
||||
|
||||
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
|
||||
%unicode|string%(2) "11"
|
||||
done!
|
||||
|
@ -37,6 +37,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
resource(%d) of type (mysql link)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -57,6 +57,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
==stdClass==
|
||||
object(stdClass)#%d (1) {
|
||||
[%u|b%"a"]=>
|
||||
|
@ -46,7 +46,8 @@ if (!mysql_select_db($db, $link) ||
|
||||
|
||||
mysql_close($link);
|
||||
?>
|
||||
--EXPECT--
|
||||
--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
|
||||
0.a
|
||||
1.b
|
||||
2.c
|
||||
|
@ -68,6 +68,8 @@ var_dump($link);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Explicit connection on close
|
||||
|
||||
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
|
||||
Expect same thread id for $link and default conn: bool(true)
|
||||
resource(%d) of type (mysql link)
|
||||
resource(%d) of type (Unknown)
|
||||
@ -75,18 +77,24 @@ resource(%d) of type (Unknown)
|
||||
Warning: mysql_close(): no MySQL-Link resource supplied in %s on line %d
|
||||
|
||||
Closing default link
|
||||
|
||||
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
|
||||
Expect same thread id for $link and default conn but not the previous: bool(true)
|
||||
resource(%d) of type (mysql link)
|
||||
resource(%d) of type (mysql link)
|
||||
resource(%d) of type (Unknown)
|
||||
|
||||
Explicit resource and pconnect
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
resource(%d) of type (mysql link persistent)
|
||||
resource(%d) of type (Unknown)
|
||||
|
||||
Warning: mysql_close(): no MySQL-Link resource supplied in %s on line %d
|
||||
|
||||
Default link and pconnect
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
resource(%d) of type (mysql link persistent)
|
||||
resource(%d) of type (mysql link persistent)
|
||||
resource(%d) of type (Unknown)
|
||||
|
@ -35,4 +35,5 @@ if ($link = my_mysql_connect($host, $user, $passwd, $db, null, $socket)) {
|
||||
}
|
||||
?>
|
||||
--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
|
||||
resource(%d) of type (mysql link)
|
||||
|
@ -67,5 +67,6 @@ mysql_close($link);
|
||||
|
||||
unlink('bug53649.data');
|
||||
?>
|
||||
--EXPECT--
|
||||
--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
|
@ -68,12 +68,21 @@ mysql.allow_persistent=1
|
||||
print "done!";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
[003] reconnect 0
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
[005] Setting openened files...
|
||||
[003] reconnect 1
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
[007] Opened files as expected
|
||||
[003] reconnect 2
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
[007] Opened files as expected
|
||||
[003] reconnect 3
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
[007] Opened files as expected
|
||||
done!
|
@ -122,4 +122,5 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
||||
|
@ -67,4 +67,5 @@ if (false !== ($tmp = @mysql_client_encoding($link)))
|
||||
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!
|
||||
|
@ -36,4 +36,5 @@ if (false !== ($tmp = @mysql_query("SELECT 1", $link)))
|
||||
print "done!\n";
|
||||
?>
|
||||
--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!
|
||||
|
@ -104,5 +104,25 @@ if (!ini_get('sql.safe_mode')) {
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
Warning: mysql_connect(): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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!
|
||||
|
@ -62,4 +62,5 @@ if (!empty($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!
|
@ -53,4 +53,7 @@ if (!mysql_query("DROP DATABASE IF EXISTS mysqlcreatedb", $link))
|
||||
mysql_close($link);
|
||||
?>
|
||||
--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
|
||||
|
||||
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!
|
||||
|
@ -67,6 +67,8 @@ print "done!\n";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_data_seek(): Offset 4 is invalid for MySQL result index %d (or the query data is unbuffered) in %s on line %d
|
||||
|
||||
Warning: mysql_data_seek(): Offset -1 is invalid for MySQL result index %d (or the query data is unbuffered) in %s on line %d
|
||||
|
@ -58,6 +58,8 @@ mysql_close($link);
|
||||
print "done!\n";
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_db_name(): Unable to jump to row -1 on MySQL result index %d in %s on line %d
|
||||
|
||||
Warning: mysql_db_name(): Unable to jump to row %d on MySQL result index %d in %s on line %d
|
||||
|
@ -62,4 +62,5 @@ print "done!\n";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
||||
|
@ -75,4 +75,5 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
@ -52,4 +52,5 @@ if (!mysql_query("DROP DATABASE IF EXISTS mysqldropdb", $link))
|
||||
mysql_close($link);
|
||||
?>
|
||||
--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!
|
@ -55,6 +55,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
int(0)
|
||||
int(%d)
|
||||
|
||||
|
@ -62,6 +62,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_error(): %d is not a valid MySQL-Link resource in %s on line %d
|
||||
bool(false)
|
||||
done!
|
||||
|
@ -281,6 +281,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
[005]
|
||||
array(4) {
|
||||
[0]=>
|
||||
|
@ -63,6 +63,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
[005]
|
||||
array(2) {
|
||||
[%u|b%"id"]=>
|
||||
@ -87,6 +88,8 @@ array(5) {
|
||||
}
|
||||
|
||||
Warning: mysql_fetch_assoc(): %d is not a valid MySQL result resource in %s on line %d
|
||||
|
||||
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
|
||||
[010]
|
||||
array(5) {
|
||||
[%u|b%"id"]=>
|
||||
|
@ -156,6 +156,7 @@ require_once('skipifconnectfailure.inc');
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
object(stdClass)#%d (13) {
|
||||
[%u|b%"name"]=>
|
||||
%unicode|string%(2) "ID"
|
||||
|
@ -39,6 +39,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
array(2) {
|
||||
[0]=>
|
||||
int(1)
|
||||
|
@ -82,6 +82,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
object(stdClass)#%d (2) {
|
||||
[%u|b%"ID"]=>
|
||||
%unicode|string%(1) "1"
|
||||
|
@ -41,6 +41,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
[004]
|
||||
array(2) {
|
||||
[0]=>
|
||||
|
@ -144,6 +144,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_field_flags() expects exactly 2 parameters, 1 given in %s on line %d
|
||||
|
||||
Warning: mysql_field_flags(): Field -1 is invalid for MySQL result index %d in %s on line %d
|
||||
|
@ -47,6 +47,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_field_len() expects exactly 2 parameters, 1 given in %s on line %d
|
||||
|
||||
Warning: mysql_field_len(): Field -1 is invalid for MySQL result index %d in %s on line %d
|
||||
|
@ -46,6 +46,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_field_name() expects exactly 2 parameters, 1 given in %s on line %d
|
||||
|
||||
Warning: mysql_field_name(): Field -1 is invalid for MySQL result index %d in %s on line %d
|
||||
|
@ -44,6 +44,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_field_seek(): Field -1 is invalid for MySQL result index %d in %s on line %d
|
||||
bool(false)
|
||||
object(stdClass)#%d (13) {
|
||||
|
@ -46,6 +46,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_field_table() expects exactly 2 parameters, 1 given in %s on line %d
|
||||
|
||||
Warning: mysql_field_table(): Field -1 is invalid for MySQL result index %d in %s on line %d
|
||||
|
@ -46,6 +46,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_field_type() expects exactly 2 parameters, 1 given in %s on line %d
|
||||
|
||||
Warning: mysql_field_type(): Field -1 is invalid for MySQL result index %d in %s on line %d
|
||||
|
@ -44,6 +44,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
bool(true)
|
||||
|
||||
Warning: mysql_free_result(): %d is not a valid MySQL result resource in %s on line %d
|
||||
|
@ -41,4 +41,5 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
||||
|
@ -31,4 +31,5 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
||||
|
@ -36,4 +36,5 @@ if (NULL !== ($tmp = @mysql_get_server_info('too many', 'just too many')))
|
||||
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!
|
||||
|
@ -70,4 +70,5 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
@ -66,6 +66,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_insert_id(): %d is not a valid MySQL-Link resource in %s on line %d
|
||||
bool(false)
|
||||
done!
|
||||
|
@ -51,4 +51,5 @@ print "done!\n";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
@ -64,6 +64,7 @@ if (!mysql_query("DROP TABLE IF EXISTS test2", $link))
|
||||
mysql_close($link);
|
||||
?>
|
||||
--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
|
||||
[006] [%d] %s
|
||||
bool(false)
|
||||
Field Offset 0
|
||||
|
@ -49,4 +49,5 @@ mysql_close($link);
|
||||
print "done!\n";
|
||||
?>
|
||||
--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!
|
@ -82,4 +82,5 @@ print "done!\n";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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!
|
||||
|
@ -54,9 +54,19 @@ mysql_close($links[1]);
|
||||
print "done!\n";
|
||||
?>
|
||||
--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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
Warning: mysql_connect(): Too many open links (2) in %s on line %s
|
||||
[030] Cannot connect using host '%s', user '%s', password '****', [0] 0
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
Warning: mysql_connect(): Too many open links (2) in %s on line %s
|
||||
[060] Cannot connect using host '%s', user '%s', password '****', [0] 0
|
||||
array(3) {
|
||||
|
@ -90,8 +90,14 @@ if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
|
||||
mysql_close($link);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
Warning: mysql_pconnect(): Too many open persistent links (1) in %s on line %d
|
||||
[020] Cannot connect using host '%s', user '%s', password '****', [0] 0
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
array(1) {
|
||||
[0]=>
|
||||
resource(%d) of type (mysql link persistent)
|
||||
|
@ -30,6 +30,7 @@ max_execution_time=12
|
||||
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
|
||||
array(1) {
|
||||
[%u|b%"SLEEP(6)"]=>
|
||||
%unicode|string%(1) "0"
|
||||
|
@ -52,5 +52,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_num_fields(): %d is not a valid MySQL result resource in %s on line %d
|
||||
done!
|
||||
|
@ -79,6 +79,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in %s on line %d
|
||||
|
||||
Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in %s on line %d
|
||||
|
@ -49,6 +49,13 @@ mysql.max_links=2
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
[001] Can connect to the server.
|
||||
[002] Can fetch data using persistent connection! Data = '1'
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
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!
|
@ -106,5 +106,12 @@ mysql.max_persistent=2
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
bool(true)
|
||||
|
||||
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
|
||||
|
||||
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!
|
||||
|
@ -191,12 +191,17 @@ $host = substr($row['_user'], strrpos($row['_user'], "@") + 1, strlen($row['_use
|
||||
mysql_close($link);
|
||||
?>
|
||||
--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
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
array(2) {
|
||||
[%u|b%"id"]=>
|
||||
%unicode|string%(1) "1"
|
||||
[%u|b%"label"]=>
|
||||
%unicode|string%(1) "a"
|
||||
}
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
array(2) {
|
||||
[%u|b%"id"]=>
|
||||
%unicode|string%(1) "1"
|
||||
|
@ -59,8 +59,17 @@ mysql.max_links=2
|
||||
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
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
[001] Can connect to the server.
|
||||
[002] Can fetch data using persistent connection! Data = '1'
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
Warning: mysql_connect(): Too many open links (2) in %s on line %d
|
||||
done!
|
@ -81,5 +81,17 @@ mysql.allow_persistent=1
|
||||
print "done!";
|
||||
?>
|
||||
--EXPECTF--
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
Warning: mysql_pconnect(): Access denied for user '%s'@'%s' (using password: YES) in %s on line %d
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
|
||||
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
|
||||
done!
|
||||
|
@ -42,6 +42,7 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
@ -113,6 +113,7 @@ if (!mysql_query('DROP TABLE IF EXISTS test', $link)) {
|
||||
mysql_close($link);
|
||||
?>
|
||||
--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
|
||||
array(1) {
|
||||
[%u|b%"valid"]=>
|
||||
%unicode|string%(30) "this is sql but with semicolon"
|
||||
|
@ -111,6 +111,9 @@ unlink("./simple.csv");
|
||||
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
|
||||
|
||||
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
|
||||
[006] [1148] %s
|
||||
[007] [0] ''
|
||||
[008] LOAD DATA not run?
|
||||
|
@ -33,6 +33,7 @@ assert($tmp === mysql_real_escape_string("foo" . chr(0) . "bar"));
|
||||
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
|
||||
%unicode|string%(31) "Am I a unicode string in PHP 6?"
|
||||
%unicode|string%(2) "\\"
|
||||
%unicode|string%(2) "\""
|
||||
|
@ -65,6 +65,8 @@ print "done!";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
|
||||
Warning: mysql_result(): Unable to jump to row -1 on MySQL result index %d in %s on line %d
|
||||
bool(false)
|
||||
|
||||
|
@ -66,6 +66,7 @@ if (false !== ($tmp = mysql_select_db($db, $link)))
|
||||
print "done!\n";
|
||||
?>
|
||||
--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
|
||||
%unicode|string%(%d) "%s"
|
||||
bool(false)
|
||||
|
||||
|
@ -58,4 +58,5 @@ mysql_close($link);
|
||||
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!
|
||||
|
@ -44,5 +44,7 @@ if (false !== ($tmp = mysql_stat($link)))
|
||||
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
|
||||
|
||||
Warning: mysql_stat(): %d is not a valid MySQL-Link resource in %s on line %d
|
||||
done!
|
||||
|
@ -42,6 +42,8 @@ mysql_close($link);
|
||||
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
|
||||
|
||||
Warning: mysql_tablename() expects at least 2 parameters, 1 given in %s on line %d
|
||||
|
||||
Warning: mysql_tablename(): Unable to jump to row -1 on MySQL result index %d in %s on line %d
|
||||
|
@ -35,5 +35,7 @@ if (false !== ($tmp = mysql_thread_id($link)))
|
||||
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
|
||||
|
||||
Warning: mysql_thread_id(): %d is not a valid MySQL-Link resource in %s on line %d
|
||||
done!
|
@ -29,6 +29,7 @@ print "done!\n";
|
||||
require_once("clean_table.inc");
|
||||
?>
|
||||
--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
|
||||
I don\'t mind character sets, do I?\n
|
||||
Warning: mysql_query(): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BOGUS_SQL' at line 1 in %s on line %d
|
||||
done!
|
||||
|
@ -107,6 +107,7 @@ if (!mysql_query('DROP TABLE IF EXISTS test', $link)) {
|
||||
mysql_close($link);
|
||||
?>
|
||||
--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
|
||||
array(1) {
|
||||
[%u|b%"valid"]=>
|
||||
%unicode|string%(30) "this is sql but with semicolon"
|
||||
|
Loading…
Reference in New Issue
Block a user