diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-07 15:27:57 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-07 16:40:27 +0200 |
commit | 8b77c58130f356093adadd0b86f797d3e2af9f68 (patch) | |
tree | 70584afa6fb161a2322c03c045fdefcd2cf7e379 /ext/mysqli | |
parent | 01cbb5967cdc1c8844df81b3b2b97a65b5ecbb9b (diff) | |
download | php-git-8b77c58130f356093adadd0b86f797d3e2af9f68.tar.gz |
Accept zend_object* in zend_update_property
Diffstat (limited to 'ext/mysqli')
-rw-r--r-- | ext/mysqli/mysqli_exception.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/mysqli/mysqli_exception.c b/ext/mysqli/mysqli_exception.c index d8a8d4dad1..e7c0fa8551 100644 --- a/ext/mysqli/mysqli_exception.c +++ b/ext/mysqli/mysqli_exception.c @@ -46,20 +46,20 @@ void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, . object_init_ex(&sql_ex, mysqli_exception_class_entry); if (message) { - zend_update_property_string(mysqli_exception_class_entry, &sql_ex, "message", sizeof("message") - 1, - message); + zend_update_property_string( + mysqli_exception_class_entry, Z_OBJ(sql_ex), "message", sizeof("message") - 1, message); } if (sqlstate) { - zend_update_property_string(mysqli_exception_class_entry, &sql_ex, "sqlstate", sizeof("sqlstate") - 1, - sqlstate); + zend_update_property_string( + mysqli_exception_class_entry, Z_OBJ(sql_ex), "sqlstate", sizeof("sqlstate") - 1, sqlstate); } else { - zend_update_property_string(mysqli_exception_class_entry, &sql_ex, "sqlstate", sizeof("sqlstate") - 1, - "00000"); + zend_update_property_string( + mysqli_exception_class_entry, Z_OBJ(sql_ex), "sqlstate", sizeof("sqlstate") - 1, "00000"); } efree(message); - zend_update_property_long(mysqli_exception_class_entry, &sql_ex, "code", sizeof("code") - 1, errorno); + zend_update_property_long(mysqli_exception_class_entry, Z_OBJ(sql_ex), "code", sizeof("code") - 1, errorno); zend_throw_exception_object(&sql_ex); } |