3030#include "mysqli_fe.h"
3131
3232#define MAP_PROPERTY_MYG_BOOL_READ (name , value ) \
33- static zval * name(mysqli_object *obj, zval *retval) \
33+ static int name(mysqli_object *obj, zval *retval, zend_bool quiet ) \
3434{ \
3535 ZVAL_BOOL(retval, MyG(value)); \
36- return retval ; \
36+ return SUCCESS ; \
3737} \
3838
3939#define MAP_PROPERTY_MYG_BOOL_WRITE (name , value ) \
@@ -44,10 +44,10 @@ static int name(mysqli_object *obj, zval *value) \
4444} \
4545
4646#define MAP_PROPERTY_MYG_LONG_READ (name , value ) \
47- static zval * name(mysqli_object *obj, zval *retval) \
47+ static int name(mysqli_object *obj, zval *retval, zend_bool quiet ) \
4848{ \
4949 ZVAL_LONG(retval, MyG(value)); \
50- return retval ; \
50+ return SUCCESS ; \
5151} \
5252
5353#define MAP_PROPERTY_MYG_LONG_WRITE (name , value ) \
@@ -58,10 +58,10 @@ static int name(mysqli_object *obj, zval *value) \
5858} \
5959
6060#define MAP_PROPERTY_MYG_STRING_READ (name , value ) \
61- static zval * name(mysqli_object *obj, zval *retval) \
61+ static int name(mysqli_object *obj, zval *retval, zend_bool quiet ) \
6262{ \
6363 ZVAL_STRING(retval, MyG(value)); \
64- return retval ; \
64+ return SUCCESS ; \
6565} \
6666
6767#define MAP_PROPERTY_MYG_STRING_WRITE (name , value ) \
@@ -82,34 +82,38 @@ static int driver_report_write(mysqli_object *obj, zval *value)
8282/* }}} */
8383
8484/* {{{ property driver_embedded_read */
85- static zval * driver_embedded_read (mysqli_object * obj , zval * retval )
85+ static int driver_embedded_read (mysqli_object * obj , zval * retval , zend_bool quiet )
8686{
8787 ZVAL_FALSE (retval );
88- return retval ;
88+
89+ return SUCCESS ;
8990}
9091/* }}} */
9192
9293/* {{{ property driver_client_version_read */
93- static zval * driver_client_version_read (mysqli_object * obj , zval * retval )
94+ static int driver_client_version_read (mysqli_object * obj , zval * retval , zend_bool quiet )
9495{
9596 ZVAL_LONG (retval , MYSQL_VERSION_ID );
96- return retval ;
97+
98+ return SUCCESS ;
9799}
98100/* }}} */
99101
100102/* {{{ property driver_client_info_read */
101- static zval * driver_client_info_read (mysqli_object * obj , zval * retval )
103+ static int driver_client_info_read (mysqli_object * obj , zval * retval , zend_bool quiet )
102104{
103105 ZVAL_STRING (retval , (char * )mysql_get_client_info ());
104- return retval ;
106+
107+ return SUCCESS ;
105108}
106109/* }}} */
107110
108111/* {{{ property driver_driver_version_read */
109- static zval * driver_driver_version_read (mysqli_object * obj , zval * retval )
112+ static int driver_driver_version_read (mysqli_object * obj , zval * retval , zend_bool quiet )
110113{
111114 ZVAL_LONG (retval , MYSQLI_VERSION_ID );
112- return retval ;
115+
116+ return SUCCESS ;
113117}
114118/* }}} */
115119
0 commit comments