Annotation of embedaddon/php/ext/mysqli/tests/bug33090.phpt, revision 1.1
1.1 ! misho 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:
! 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:
! 16: if (!($link->prepare("this makes no sense"))) {
! 17: printf("%d\n", $link->errno);
! 18: printf("%s\n", $link->sqlstate);
! 19: }
! 20: $link->close();
! 21: ?>
! 22: --EXPECT--
! 23: 1064
! 24: 42000
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>