mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
25 lines
626 B
PHP
25 lines
626 B
PHP
--TEST--
|
|
Bug #74547 mysqli::change_user() doesn't accept null as $database argument w/strict_types
|
|
--EXTENSIONS--
|
|
mysqli
|
|
--SKIPIF--
|
|
<?php
|
|
require_once 'skipifconnectfailure.inc';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
declare(strict_types=1);
|
|
|
|
require_once 'connect.inc';
|
|
|
|
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
|
|
printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
|
|
$host, $user, $db, $port, $socket);
|
|
|
|
var_dump(mysqli_change_user($link, $user, $passwd, NULL));
|
|
|
|
mysqli_close($link);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|