mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
19 lines
394 B
PHP
19 lines
394 B
PHP
--TEST--
|
|
Incomplete initialization edge case where mysql->mysql is NULL
|
|
--EXTENSIONS--
|
|
mysqli
|
|
--FILE--
|
|
<?php
|
|
|
|
mysqli_report(MYSQLI_REPORT_OFF);
|
|
$mysqli = new mysqli();
|
|
@$mysqli->__construct('doesnotexist');
|
|
$mysqli->close();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: mysqli object is not fully initialized in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): mysqli->close()
|
|
#1 {main}
|
|
thrown in %s on line %d
|