mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

Batch 1 of amending tests, so they can run in parallel. Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
32 lines
604 B
PHP
32 lines
604 B
PHP
--TEST--
|
|
function test: mysqli_errno
|
|
--EXTENSIONS--
|
|
mysqli
|
|
--SKIPIF--
|
|
<?php
|
|
require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
|
|
mysqli_check_skip_test();
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
|
|
|
|
/* Disable exceptions */
|
|
mysqli_report(MYSQLI_REPORT_OFF);
|
|
|
|
$link = default_mysqli_connect();
|
|
$errno = mysqli_errno($link);
|
|
var_dump($errno);
|
|
|
|
mysqli_query($link, "SELECT * FROM non_existing_table");
|
|
$errno = mysqli_errno($link);
|
|
|
|
var_dump($errno);
|
|
|
|
mysqli_close($link);
|
|
print "done!";
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|
|
int(1146)
|
|
done!
|