Lines Matching refs:retval
35 ZVAL_NULL(retval); \
36 return retval; \
43 ZVAL_NULL(retval);\
44 return retval; \
54 ZVAL_NULL(retval);\
55 return retval; \
66 ZVAL_NULL(retval);\
67 return retval; \
74 static zval *__func(mysqli_object *obj, zval *retval) \
79 ZVAL_NULL(retval);\
83 ZVAL_LONG(retval, (zend_long) l);\
85 ZVAL_NEW_STR(retval, strpprintf(0, __ret_type_sprint_mod, l)); \
88 return retval;\
92 static zval *__func(mysqli_object *obj, zval *retval)\
97 ZVAL_NULL(retval);\
101 ZVAL_NULL(retval);\
103 ZVAL_STRING(retval, c);\
106 return retval; \
110 static zval *link_client_version_read(mysqli_object *obj, zval *retval) in link_client_version_read() argument
112 ZVAL_LONG(retval, MYSQL_VERSION_ID); in link_client_version_read()
113 return retval; in link_client_version_read()
118 static zval *link_client_info_read(mysqli_object *obj, zval *retval) in link_client_info_read() argument
121 ZVAL_STRING(retval, MYSQL_SERVER_VERSION); in link_client_info_read()
122 return retval; in link_client_info_read()
127 static zval *link_connect_errno_read(mysqli_object *obj, zval *retval) in link_connect_errno_read() argument
129 ZVAL_LONG(retval, (zend_long)MyG(error_no)); in link_connect_errno_read()
130 return retval; in link_connect_errno_read()
135 static zval *link_connect_error_read(mysqli_object *obj, zval *retval) in link_connect_error_read() argument
138 ZVAL_STRING(retval, MyG(error_msg)); in link_connect_error_read()
140 ZVAL_NULL(retval); in link_connect_error_read()
142 return retval; in link_connect_error_read()
147 static zval *link_affected_rows_read(mysqli_object *obj, zval *retval) in link_affected_rows_read() argument
157 ZVAL_NULL(retval); in link_affected_rows_read()
164 ZVAL_LONG(retval, -1); in link_affected_rows_read()
165 return retval; in link_affected_rows_read()
169 ZVAL_LONG(retval, (zend_long) rc); in link_affected_rows_read()
171 ZVAL_NEW_STR(retval, strpprintf(0, MYSQLI_LLU_SPEC, rc)); in link_affected_rows_read()
174 return retval; in link_affected_rows_read()
179 static zval *link_error_list_read(mysqli_object *obj, zval *retval) in link_error_list_read() argument
187 array_init(retval); in link_error_list_read()
202 add_next_index_zval(retval, &single_error); in link_error_list_read()
212 add_next_index_zval(retval, &single_error); in link_error_list_read()
217 return retval; in link_error_list_read()
236 static zval *link_stat_read(mysqli_object *obj, zval *retval) in MYSQLI_MAP_PROPERTY_FUNC_LONG()
240 ZVAL_NULL(retval); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
254 ZVAL_STR(retval, stat_msg); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
259 ZVAL_STRING(retval, stat_msg); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
263 return retval; in MYSQLI_MAP_PROPERTY_FUNC_LONG()
270 static zval *result_type_read(mysqli_object *obj, zval *retval) in result_type_read() argument
278 ZVAL_NULL(retval); in result_type_read()
280 ZVAL_LONG(retval, mysqli_result_is_unbuffered(p) ? MYSQLI_USE_RESULT:MYSQLI_STORE_RESULT); in result_type_read()
282 return retval; in result_type_read()
287 static zval *result_lengths_read(mysqli_object *obj, zval *retval) in result_lengths_read() argument
301 ZVAL_NULL(retval); in result_lengths_read()
305 array_init(retval); in result_lengths_read()
308 add_index_long(retval, i, ret[i]); in result_lengths_read()
311 return retval; in result_lengths_read()
322 static zval *stmt_id_read(mysqli_object *obj, zval *retval) in MYSQLI_MAP_PROPERTY_FUNC_LONG()
331 ZVAL_NULL(retval); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
333 ZVAL_LONG(retval, mysqli_stmt_get_id(p->stmt)); in MYSQLI_MAP_PROPERTY_FUNC_LONG()
335 return retval; in MYSQLI_MAP_PROPERTY_FUNC_LONG()
340 static zval *stmt_affected_rows_read(mysqli_object *obj, zval *retval) in stmt_affected_rows_read() argument
350 ZVAL_NULL(retval); in stmt_affected_rows_read()
355 ZVAL_LONG(retval, -1); in stmt_affected_rows_read()
356 return retval; in stmt_affected_rows_read()
360 ZVAL_LONG(retval, (zend_long) rc); in stmt_affected_rows_read()
362 ZVAL_NEW_STR(retval, strpprintf(0, MYSQLI_LLU_SPEC, rc)); in stmt_affected_rows_read()
365 return retval; in stmt_affected_rows_read()
370 static zval *stmt_error_list_read(mysqli_object *obj, zval *retval) in stmt_error_list_read() argument
377 array_init(retval); in stmt_error_list_read()
392 add_next_index_zval(retval, &single_error); in stmt_error_list_read()
402 add_next_index_zval(retval, &single_error); in stmt_error_list_read()
406 return retval; in stmt_error_list_read()