Lines Matching refs:retval
30 static void ps_call_handler(zval *func, int argc, zval *argv, zval *retval) in ps_call_handler() argument
33 if (call_user_function(EG(function_table), NULL, func, retval, argc, argv) == FAILURE) { in ps_call_handler()
34 zval_ptr_dtor(retval); in ps_call_handler()
35 ZVAL_UNDEF(retval); in ps_call_handler()
36 } else if (Z_ISUNDEF_P(retval)) { in ps_call_handler()
37 ZVAL_NULL(retval); in ps_call_handler()
45 zval retval; \
51 if (Z_TYPE(retval) != IS_UNDEF) { \
52 if (Z_TYPE(retval) == IS_TRUE) { \
54 } else if (Z_TYPE(retval) == IS_FALSE) { \
56 } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == -1)) { \
59 } else if ((Z_TYPE(retval) == IS_LONG) && (Z_LVAL(retval) == 0)) { \
68 zval_ptr_dtor(&retval); \
88 ps_call_handler(&PSF(open), 2, args, &retval); in PS_OPEN_FUNC()
105 ps_call_handler(&PSF(close), 0, NULL, &retval); in PS_CLOSE_FUNC()
113 if (!Z_ISUNDEF(retval)) { in PS_CLOSE_FUNC()
114 zval_ptr_dtor(&retval); in PS_CLOSE_FUNC()
129 ps_call_handler(&PSF(read), 1, args, &retval); in PS_READ_FUNC()
131 if (!Z_ISUNDEF(retval)) { in PS_READ_FUNC()
132 if (Z_TYPE(retval) == IS_STRING) { in PS_READ_FUNC()
133 *val = zend_string_copy(Z_STR(retval)); in PS_READ_FUNC()
136 zval_ptr_dtor(&retval); in PS_READ_FUNC()
150 ps_call_handler(&PSF(write), 2, args, &retval); in PS_WRITE_FUNC()
162 ps_call_handler(&PSF(destroy), 1, args, &retval); in PS_DESTROY_FUNC()
174 ps_call_handler(&PSF(gc), 1, args, &retval); in PS_GC_FUNC()
184 zval retval; in PS_CREATE_SID_FUNC() local
186 ps_call_handler(&PSF(create_sid), 0, NULL, &retval); in PS_CREATE_SID_FUNC()
188 if (!Z_ISUNDEF(retval)) { in PS_CREATE_SID_FUNC()
189 if (Z_TYPE(retval) == IS_STRING) { in PS_CREATE_SID_FUNC()
190 id = zend_string_copy(Z_STR(retval)); in PS_CREATE_SID_FUNC()
192 zval_ptr_dtor(&retval); in PS_CREATE_SID_FUNC()
219 ps_call_handler(&PSF(validate_sid), 1, args, &retval); in PS_VALIDATE_SID_FUNC()
238 ps_call_handler(&PSF(update_timestamp), 2, args, &retval); in PS_UPDATE_TIMESTAMP_FUNC()
240 ps_call_handler(&PSF(write), 2, args, &retval); in PS_UPDATE_TIMESTAMP_FUNC()