bug33090.phpt 499 B

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