xref: /PHP-7.2/ext/mysqli/tests/bug33090.phpt (revision c01b505a)
1--TEST--
2Bug #33090 (mysql_prepare doesn't return an error)
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_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--
231064
2442000
25