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