1--TEST-- 2function test: mysqli_errno 3--EXTENSIONS-- 4mysqli 5--SKIPIF-- 6<?php 7require_once('skipifconnectfailure.inc'); 8?> 9--FILE-- 10<?php 11 require_once("connect.inc"); 12 13 /*** test mysqli_connect 127.0.0.1 ***/ 14 $link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); 15 $errno = mysqli_errno($link); 16 var_dump($errno); 17 18 mysqli_select_db($link, $db); 19 20 mysqli_query($link, "SELECT * FROM non_exisiting_table"); 21 $errno = mysqli_errno($link); 22 23 var_dump($errno); 24 25 mysqli_close($link); 26 print "done!"; 27?> 28--EXPECT-- 29int(0) 30int(1146) 31done! 32