mirror of
https://github.com/php/php-src.git
synced 2024-09-30 06:16:08 +00:00
9b035b58f5
[14:35] <_jani_> nixnutz_: why don't you just commit everything in one go..? [14:35] <_jani_> this "spamming" is getting quite boring.. [14:36] <Pierre> 20â¬/commit :)
26 lines
643 B
PHP
26 lines
643 B
PHP
--TEST--
|
|
mysqli_debug()
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
<?php require_once('skipifemb.inc');
|
|
if (!function_exists('mysqli_debug'))
|
|
die("skip: mysqli_debug() not available");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
include "connect.inc";
|
|
|
|
$tmp = NULL;
|
|
$link = NULL;
|
|
|
|
if (NULL !== ($tmp = @mysqli_debug()))
|
|
printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp);
|
|
|
|
// NOTE: documentation is not clear on this: function always return NULL or TRUE
|
|
if (true !== ($tmp = mysqli_debug("d:t:O,/tmp/client.trace")))
|
|
printf("[002] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
|
|
|
|
print "done!";
|
|
?>
|
|
--EXPECTF--
|
|
done!
|