1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Mark mysqli_driver properties readonly

This commit is contained in:
Máté Kocsis
2021-12-28 09:52:27 +01:00
parent 96a5026bfd
commit f70ca0acd4
2 changed files with 4 additions and 1 deletions

View File

@@ -4,10 +4,13 @@
final class mysqli_driver
{
/** @readonly */
public string $client_info;
/** @readonly */
public int $client_version;
/** @readonly */
public int $driver_version;
public bool $reconnect = false;

View File

@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 78662c05cd463735a8a4101c0357fd0d2698d48e */
* Stub hash: baf4cb58df96edeb4fc14e4703fe9363cf5ed784 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_mysqli_affected_rows, 0, 1, MAY_BE_LONG|MAY_BE_STRING)
ZEND_ARG_OBJ_INFO(0, mysql, mysqli, 0)