1--TEST--
2mysqlnd.net_read_timeout > default_socket_timeout
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7require_once('connect.inc');
8?>
9--INI--
10default_socket_timeout=1
11mysqlnd.net_read_timeout=12
12max_execution_time=12
13--FILE--
14<?php
15	set_time_limit(12);
16	include ("connect.inc");
17
18	if (!$link = my_mysql_connect($host, $user, $passwd, $db, $port, $socket)) {
19		printf("[001] Connect failed, [%d] %s\n", mysql_errno(), mysqlerror());
20	}
21
22	if (!$res = mysql_query("SELECT SLEEP(6)", $link))
23		printf("[002] [%d] %s\n",  mysql_errno($link), mysql_error($link));
24
25	var_dump(mysql_fetch_assoc($res));
26
27	mysql_free_result($res);
28	mysql_close($link);
29
30	print "done!";
31?>
32--EXPECTF--
33Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d
34array(1) {
35  [%u|b%"SLEEP(6)"]=>
36  %unicode|string%(1) "0"
37}
38done!
39