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