bug33090.phpt 526 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Bug #33090 (mysql_prepare doesn't return an error)
  3. --EXTENSIONS--
  4. mysqli
  5. --SKIPIF--
  6. <?php
  7. require_once('skipifconnectfailure.inc');
  8. ?>
  9. --FILE--
  10. <?php
  11. include ("connect.inc");
  12. /*** test mysqli_connect 127.0.0.1 ***/
  13. $link = my_mysqli_connect($host, $user, $passwd, null, $port, $socket);
  14. mysqli_select_db($link, $db);
  15. if (!($link->prepare("this makes no sense"))) {
  16. printf("%d\n", $link->errno);
  17. printf("%s\n", $link->sqlstate);
  18. }
  19. $link->close();
  20. ?>
  21. --EXPECT--
  22. 1064
  23. 42000