xref: /PHP-7.3/ext/mysqli/tests/bug74547.phpt (revision ded3d984)
1--TEST--
2Bug #74547 mysqli::change_user() doesn't accept null as $database argument w/strict_types
3--SKIPIF--
4<?php
5  require_once('skipif.inc');
6  require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10	declare(strict_types=1);
11
12	require_once("connect.inc");
13
14	if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
15		printf("[001] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
16			$host, $user, $db, $port, $socket);
17
18	var_dump(mysqli_change_user($link, $user, $passwd, NULL));
19
20	mysqli_close($link);
21?>
22===DONE===
23--EXPECT--
24bool(true)
25===DONE===
26