1--TEST--
2Writing to mysqli properties (strict_types)
3--EXTENSIONS--
4mysqli
5--FILE--
6<?php
7
8declare(strict_types=1);
9
10$driver = new mysqli_driver;
11try {
12    /* Read-only property */
13    $driver->client_info = 42;
14} catch (Error $e) {
15    echo $e->getMessage(), "\n";
16}
17
18try {
19    $driver->reconnect = 0;
20} catch (Error $e) {
21    echo $e->getMessage(), "\n";
22}
23
24try {
25    $driver->report_mode = "1";
26} catch (Error $e) {
27    echo $e->getMessage(), "\n";
28}
29
30?>
31--EXPECT--
32Cannot write read-only property mysqli_driver::$client_info
33Cannot assign int to property mysqli_driver::$reconnect of type bool
34Cannot assign string to property mysqli_driver::$report_mode of type int
35