1--TEST--
2Incomplete initialization edge case where mysql->mysql is NULL
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6?>
7--FILE--
8<?php
9
10$mysqli = new mysqli();
11@$mysqli->__construct('doesnotexist');
12$mysqli->close();
13
14?>
15--EXPECTF--
16Fatal error: Uncaught Error: mysqli object is not fully initialized in %s:%d
17Stack trace:
18#0 %s(%d): mysqli->close()
19#1 {main}
20  thrown in %s on line %d
21