2005-05-21 08:46:46 +00:00
|
|
|
--TEST--
|
2007-05-07 18:03:01 +00:00
|
|
|
Bug #33090 (mysql_prepare doesn't return an error)
|
2005-05-21 08:46:46 +00:00
|
|
|
--SKIPIF--
|
2007-10-10 10:10:59 +00:00
|
|
|
<?php
|
|
|
|
require_once('skipif.inc');
|
|
|
|
require_once('skipifconnectfailure.inc');
|
|
|
|
?>
|
2005-05-21 08:46:46 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
include ("connect.inc");
|
|
|
|
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
2007-10-10 10:10:59 +00:00
|
|
|
$link = mysqli_connect($host, $user, $passwd, null, $port, $socket);
|
|
|
|
mysqli_select_db($link, $db);
|
2005-05-21 08:46:46 +00:00
|
|
|
|
|
|
|
if (!($link->prepare("this makes no sense"))) {
|
|
|
|
printf("%d\n", $link->errno);
|
|
|
|
printf("%s\n", $link->sqlstate);
|
|
|
|
}
|
|
|
|
$link->close();
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
1064
|
|
|
|
42000
|