Lines Matching refs:retval

30 static void ps_call_handler(zval *func, int argc, zval *argv, zval *retval)  in ps_call_handler()  argument
35 ZVAL_UNDEF(retval); in ps_call_handler()
40 if (call_user_function(EG(function_table), NULL, func, retval, argc, argv) == FAILURE) { in ps_call_handler()
41 zval_ptr_dtor(retval); in ps_call_handler()
42 ZVAL_UNDEF(retval); in ps_call_handler()
43 } else if (Z_ISUNDEF_P(retval)) { in ps_call_handler()
44 ZVAL_NULL(retval); in ps_call_handler()
53 zval retval; \
59 if (Z_TYPE(retval) != IS_UNDEF) { \
60 if (Z_TYPE(retval) == IS_TRUE) { \
62 } else if (Z_TYPE(retval) == IS_FALSE) { \
64 } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == -1)) { \
67 } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == 0)) { \
76 zval_ptr_dtor(&retval); \
97 ps_call_handler(&PSF(open), 2, args, &retval); in PS_OPEN_FUNC()
100 if (!Z_ISUNDEF(retval)) { in PS_OPEN_FUNC()
101 zval_ptr_dtor(&retval); in PS_OPEN_FUNC()
122 ps_call_handler(&PSF(close), 0, NULL, &retval); in PS_CLOSE_FUNC()
130 if (!Z_ISUNDEF(retval)) { in PS_CLOSE_FUNC()
131 zval_ptr_dtor(&retval); in PS_CLOSE_FUNC()
146 ps_call_handler(&PSF(read), 1, args, &retval); in PS_READ_FUNC()
148 if (!Z_ISUNDEF(retval)) { in PS_READ_FUNC()
149 if (Z_TYPE(retval) == IS_STRING) { in PS_READ_FUNC()
150 *val = zend_string_copy(Z_STR(retval)); in PS_READ_FUNC()
153 zval_ptr_dtor(&retval); in PS_READ_FUNC()
167 ps_call_handler(&PSF(write), 2, args, &retval); in PS_WRITE_FUNC()
179 ps_call_handler(&PSF(destroy), 1, args, &retval); in PS_DESTROY_FUNC()
187 zval retval; in PS_GC_FUNC() local
191 ps_call_handler(&PSF(gc), 1, args, &retval); in PS_GC_FUNC()
193 if (Z_TYPE(retval) == IS_LONG) { in PS_GC_FUNC()
194 convert_to_long(&retval); in PS_GC_FUNC()
195 *nrdels = Z_LVAL(retval); in PS_GC_FUNC()
196 } else if (Z_TYPE(retval) == IS_TRUE) { in PS_GC_FUNC()
211 zval retval; in PS_CREATE_SID_FUNC() local
213 ps_call_handler(&PSF(create_sid), 0, NULL, &retval); in PS_CREATE_SID_FUNC()
215 if (!Z_ISUNDEF(retval)) { in PS_CREATE_SID_FUNC()
216 if (Z_TYPE(retval) == IS_STRING) { in PS_CREATE_SID_FUNC()
217 id = zend_string_copy(Z_STR(retval)); in PS_CREATE_SID_FUNC()
219 zval_ptr_dtor(&retval); in PS_CREATE_SID_FUNC()
246 ps_call_handler(&PSF(validate_sid), 1, args, &retval); in PS_VALIDATE_SID_FUNC()
265 ps_call_handler(&PSF(update_timestamp), 2, args, &retval); in PS_UPDATE_TIMESTAMP_FUNC()
267 ps_call_handler(&PSF(write), 2, args, &retval); in PS_UPDATE_TIMESTAMP_FUNC()