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