Lines Matching refs:op
250 ZEND_API void ZEND_FASTCALL convert_scalar_to_number(zval *op);
251 ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op);
252 ZEND_API void ZEND_FASTCALL convert_to_long(zval *op);
253 ZEND_API void ZEND_FASTCALL convert_to_double(zval *op);
254 ZEND_API void ZEND_FASTCALL convert_to_long_base(zval *op, int base);
255 ZEND_API void ZEND_FASTCALL convert_to_null(zval *op);
256 ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op);
257 ZEND_API void ZEND_FASTCALL convert_to_array(zval *op);
258 ZEND_API void ZEND_FASTCALL convert_to_object(zval *op);
260 ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(zval *op);
261 ZEND_API double ZEND_FASTCALL zval_get_double_func(zval *op);
262 ZEND_API zend_string* ZEND_FASTCALL zval_get_string_func(zval *op);
263 ZEND_API zend_string* ZEND_FASTCALL zval_try_get_string_func(zval *op);
265 static zend_always_inline zend_long zval_get_long(zval *op) { in zval_get_long() argument
266 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op); in zval_get_long()
268 static zend_always_inline double zval_get_double(zval *op) { in zval_get_double() argument
269 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double()
271 static zend_always_inline zend_string *zval_get_string(zval *op) { in zval_get_string() argument
272 …return EXPECTED(Z_TYPE_P(op) == IS_STRING) ? zend_string_copy(Z_STR_P(op)) : zval_get_string_func(… in zval_get_string()
275 static zend_always_inline zend_string *zval_get_tmp_string(zval *op, zend_string **tmp) { in zval_get_tmp_string() argument
276 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_get_tmp_string()
278 return Z_STR_P(op); in zval_get_tmp_string()
280 return *tmp = zval_get_string_func(op); in zval_get_tmp_string()
290 static zend_always_inline zend_string *zval_try_get_string(zval *op) { in zval_try_get_string() argument
291 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_string()
292 zend_string *ret = zend_string_copy(Z_STR_P(op)); in zval_try_get_string()
296 return zval_try_get_string_func(op); in zval_try_get_string()
301 static zend_always_inline zend_string *zval_try_get_tmp_string(zval *op, zend_string **tmp) { in zval_try_get_tmp_string() argument
302 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_tmp_string()
303 zend_string *ret = Z_STR_P(op); in zval_try_get_tmp_string()
308 return *tmp = zval_try_get_string_func(op); in zval_try_get_tmp_string()
314 ZEND_API zend_bool ZEND_FASTCALL _try_convert_to_string(zval *op);
315 static zend_always_inline zend_bool try_convert_to_string(zval *op) { in try_convert_to_string() argument
316 if (Z_TYPE_P(op) == IS_STRING) { in try_convert_to_string()
319 return _try_convert_to_string(op); in try_convert_to_string()
323 #define _zval_get_long(op) zval_get_long(op) argument
324 #define _zval_get_double(op) zval_get_double(op) argument
325 #define _zval_get_string(op) zval_get_string(op) argument
326 #define _zval_get_long_func(op) zval_get_long_func(op) argument
327 #define _zval_get_double_func(op) zval_get_double_func(op) argument
328 #define _zval_get_string_func(op) zval_get_string_func(op) argument
330 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); } argument
333 ZEND_API int ZEND_FASTCALL zend_is_true(zval *op);
334 ZEND_API bool ZEND_FASTCALL zend_object_is_true(zval *op);
336 #define zval_is_true(op) \ argument
337 zend_is_true(op)
339 static zend_always_inline bool i_zend_is_true(zval *op) in i_zend_is_true() argument
344 switch (Z_TYPE_P(op)) { in i_zend_is_true()
349 if (Z_LVAL_P(op)) { in i_zend_is_true()
354 if (Z_DVAL_P(op)) { in i_zend_is_true()
359 if (Z_STRLEN_P(op) > 1 || (Z_STRLEN_P(op) && Z_STRVAL_P(op)[0] != '0')) { in i_zend_is_true()
364 if (zend_hash_num_elements(Z_ARRVAL_P(op))) { in i_zend_is_true()
369 if (EXPECTED(Z_OBJ_HT_P(op)->cast_object == zend_std_cast_object_tostring)) { in i_zend_is_true()
372 result = zend_object_is_true(op); in i_zend_is_true()
376 if (EXPECTED(Z_RES_HANDLE_P(op))) { in i_zend_is_true()
381 op = Z_REFVAL_P(op); in i_zend_is_true()
434 ZEND_API void ZEND_FASTCALL zend_locale_sprintf_double(zval *op ZEND_FILE_LINE_DC);
931 static zend_always_inline void zend_unwrap_reference(zval *op) /* {{{ */ in zend_unwrap_reference() argument
933 if (Z_REFCOUNT_P(op) == 1) { in zend_unwrap_reference()
934 ZVAL_UNREF(op); in zend_unwrap_reference()
936 Z_DELREF_P(op); in zend_unwrap_reference()
937 ZVAL_COPY(op, Z_REFVAL_P(op)); in zend_unwrap_reference()