Lines Matching refs:retval
26 static void ps_call_handler(zval *func, int argc, zval *argv, zval *retval) in ps_call_handler() argument
31 ZVAL_UNDEF(retval); in ps_call_handler()
36 if (call_user_function(NULL, NULL, func, retval, argc, argv) == FAILURE) { in ps_call_handler()
37 zval_ptr_dtor(retval); in ps_call_handler()
38 ZVAL_UNDEF(retval); in ps_call_handler()
39 } else if (Z_ISUNDEF_P(retval)) { in ps_call_handler()
40 ZVAL_NULL(retval); in ps_call_handler()
85 zval retval; in PS_OPEN_FUNC() local
94 ps_call_handler(&PSF(open), 2, args, &retval); in PS_OPEN_FUNC()
97 if (!Z_ISUNDEF(retval)) { in PS_OPEN_FUNC()
98 zval_ptr_dtor(&retval); in PS_OPEN_FUNC()
105 ret = verify_bool_return_type_userland_calls(&retval); in PS_OPEN_FUNC()
106 zval_ptr_dtor(&retval); in PS_OPEN_FUNC()
113 zval retval; in PS_CLOSE_FUNC() local
124 ps_call_handler(&PSF(close), 0, NULL, &retval); in PS_CLOSE_FUNC()
132 if (!Z_ISUNDEF(retval)) { in PS_CLOSE_FUNC()
133 zval_ptr_dtor(&retval); in PS_CLOSE_FUNC()
138 ret = verify_bool_return_type_userland_calls(&retval); in PS_CLOSE_FUNC()
139 zval_ptr_dtor(&retval); in PS_CLOSE_FUNC()
146 zval retval; in PS_READ_FUNC() local
153 ps_call_handler(&PSF(read), 1, args, &retval); in PS_READ_FUNC()
155 if (!Z_ISUNDEF(retval)) { in PS_READ_FUNC()
156 if (Z_TYPE(retval) == IS_STRING) { in PS_READ_FUNC()
157 *val = zend_string_copy(Z_STR(retval)); in PS_READ_FUNC()
160 zval_ptr_dtor(&retval); in PS_READ_FUNC()
169 zval retval; in PS_WRITE_FUNC() local
177 ps_call_handler(&PSF(write), 2, args, &retval); in PS_WRITE_FUNC()
179 ret = verify_bool_return_type_userland_calls(&retval); in PS_WRITE_FUNC()
180 zval_ptr_dtor(&retval); in PS_WRITE_FUNC()
187 zval retval; in PS_DESTROY_FUNC() local
194 ps_call_handler(&PSF(destroy), 1, args, &retval); in PS_DESTROY_FUNC()
196 ret = verify_bool_return_type_userland_calls(&retval); in PS_DESTROY_FUNC()
197 zval_ptr_dtor(&retval); in PS_DESTROY_FUNC()
204 zval retval; in PS_GC_FUNC() local
210 ps_call_handler(&PSF(gc), 1, args, &retval); in PS_GC_FUNC()
212 if (Z_TYPE(retval) == IS_LONG) { in PS_GC_FUNC()
213 *nrdels = Z_LVAL(retval); in PS_GC_FUNC()
214 } else if (Z_TYPE(retval) == IS_TRUE) { in PS_GC_FUNC()
229 zval retval; in PS_CREATE_SID_FUNC() local
231 ps_call_handler(&PSF(create_sid), 0, NULL, &retval); in PS_CREATE_SID_FUNC()
233 if (!Z_ISUNDEF(retval)) { in PS_CREATE_SID_FUNC()
234 if (Z_TYPE(retval) == IS_STRING) { in PS_CREATE_SID_FUNC()
235 id = zend_string_copy(Z_STR(retval)); in PS_CREATE_SID_FUNC()
237 zval_ptr_dtor(&retval); in PS_CREATE_SID_FUNC()
260 zval retval; in PS_VALIDATE_SID_FUNC() local
265 ps_call_handler(&PSF(validate_sid), 1, args, &retval); in PS_VALIDATE_SID_FUNC()
267 ret = verify_bool_return_type_userland_calls(&retval); in PS_VALIDATE_SID_FUNC()
268 zval_ptr_dtor(&retval); in PS_VALIDATE_SID_FUNC()
279 zval retval; in PS_UPDATE_TIMESTAMP_FUNC() local
287 ps_call_handler(&PSF(update_timestamp), 2, args, &retval); in PS_UPDATE_TIMESTAMP_FUNC()
289 ps_call_handler(&PSF(write), 2, args, &retval); in PS_UPDATE_TIMESTAMP_FUNC()
292 ret = verify_bool_return_type_userland_calls(&retval); in PS_UPDATE_TIMESTAMP_FUNC()
293 zval_ptr_dtor(&retval); in PS_UPDATE_TIMESTAMP_FUNC()