5
require_once('skipif.inc');
6
require_once('skipifconnectfailure.inc');
10
include "connect.inc";
15
if (!is_null($tmp = @mysql_fetch_lengths()))
16
printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
18
if (NULL !== ($tmp = @mysql_fetch_lengths($link)))
19
printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
22
if (!$res = mysql_query("SELECT id, label FROM test ORDER BY id LIMIT 1", $link)) {
23
printf("[003] [%d] %s\n", mysql_errno($link), mysql_error($link));
26
while ($row = mysql_fetch_assoc($res))
27
var_dump(mysql_fetch_lengths($res));
28
var_dump(mysql_fetch_lengths($res));
30
mysql_free_result($res);
32
var_dump(mysql_fetch_lengths($res));
46
Warning: mysql_fetch_lengths(): %d is not a valid MySQL result resource in %s on line %d