mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

Batch 1 of amending tests, so they can run in parallel. Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
32 lines
617 B
PHP
32 lines
617 B
PHP
--TEST--
|
|
function test: mysqli_error
|
|
--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();
|
|
$error = mysqli_error($link);
|
|
var_dump($error);
|
|
|
|
mysqli_query($link, "SELECT * FROM non_existing_table");
|
|
$error = mysqli_error($link);
|
|
|
|
var_dump($error);
|
|
|
|
mysqli_close($link);
|
|
print "done!";
|
|
?>
|
|
--EXPECTF--
|
|
string(0) ""
|
|
string(%d) "%s"
|
|
done!
|