Lines Matching refs:op

289 ZEND_API void ZEND_FASTCALL convert_scalar_to_number(zval *op);
290 ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op);
291 ZEND_API void ZEND_FASTCALL convert_to_long(zval *op);
292 ZEND_API void ZEND_FASTCALL convert_to_double(zval *op);
293 ZEND_API void ZEND_FASTCALL convert_to_null(zval *op);
294 ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op);
295 ZEND_API void ZEND_FASTCALL convert_to_array(zval *op);
296 ZEND_API void ZEND_FASTCALL convert_to_object(zval *op);
298 ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(const zval *op, bool is_strict);
299 ZEND_API zend_long ZEND_FASTCALL zval_try_get_long(const zval *op, bool *failed);
300 ZEND_API double ZEND_FASTCALL zval_get_double_func(const zval *op);
301 ZEND_API zend_string* ZEND_FASTCALL zval_get_string_func(zval *op);
302 ZEND_API zend_string* ZEND_FASTCALL zval_try_get_string_func(zval *op);
304 static zend_always_inline zend_long zval_get_long(const zval *op) { in zval_get_long() argument
305 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, false); in zval_get_long()
307 static zend_always_inline zend_long zval_get_long_ex(const zval *op, bool is_strict) { in zval_get_long_ex() argument
308 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, is_strict); in zval_get_long_ex()
310 static zend_always_inline double zval_get_double(const zval *op) { in zval_get_double() argument
311 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double()
313 static zend_always_inline zend_string *zval_get_string(zval *op) { in zval_get_string() argument
314 …return EXPECTED(Z_TYPE_P(op) == IS_STRING) ? zend_string_copy(Z_STR_P(op)) : zval_get_string_func( in zval_get_string()
317 static zend_always_inline zend_string *zval_get_tmp_string(zval *op, zend_string **tmp) { in zval_get_tmp_string() argument
318 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_get_tmp_string()
320 return Z_STR_P(op); in zval_get_tmp_string()
322 return *tmp = zval_get_string_func(op); in zval_get_tmp_string()
332 static zend_always_inline zend_string *zval_try_get_string(zval *op) { in zval_try_get_string() argument
333 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_string()
334 zend_string *ret = zend_string_copy(Z_STR_P(op)); in zval_try_get_string()
338 return zval_try_get_string_func(op); in zval_try_get_string()
343 static zend_always_inline zend_string *zval_try_get_tmp_string(zval *op, zend_string **tmp) { in zval_try_get_tmp_string() argument
344 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_tmp_string()
345 zend_string *ret = Z_STR_P(op); in zval_try_get_tmp_string()
350 return *tmp = zval_try_get_string_func(op); in zval_try_get_tmp_string()
356 ZEND_API bool ZEND_FASTCALL _try_convert_to_string(zval *op);
357 static zend_always_inline bool try_convert_to_string(zval *op) { in try_convert_to_string() argument
358 if (Z_TYPE_P(op) == IS_STRING) { in try_convert_to_string()
361 return _try_convert_to_string(op); in try_convert_to_string()
365 #define _zval_get_long(op) zval_get_long(op) argument
366 #define _zval_get_double(op) zval_get_double(op) argument
367 #define _zval_get_string(op) zval_get_string(op) argument
368 #define _zval_get_long_func(op) zval_get_long_func(op) argument
369 #define _zval_get_double_func(op) zval_get_double_func(op) argument
370 #define _zval_get_string_func(op) zval_get_string_func(op) argument
372 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); } argument
375 ZEND_API int ZEND_FASTCALL zend_is_true(const zval *op);
376 ZEND_API bool ZEND_FASTCALL zend_object_is_true(const zval *op);
378 #define zval_is_true(op) \ argument
379 zend_is_true(op)
381 static zend_always_inline bool i_zend_is_true(const zval *op) in i_zend_is_true() argument
386 switch (Z_TYPE_P(op)) { in i_zend_is_true()
391 if (Z_LVAL_P(op)) { in i_zend_is_true()
396 if (Z_DVAL_P(op)) { in i_zend_is_true()
401 if (Z_STRLEN_P(op) > 1 || (Z_STRLEN_P(op) && Z_STRVAL_P(op)[0] != '0')) { in i_zend_is_true()
406 if (zend_hash_num_elements(Z_ARRVAL_P(op))) { in i_zend_is_true()
411 if (EXPECTED(Z_OBJ_HT_P(op)->cast_object == zend_std_cast_object_tostring)) { in i_zend_is_true()
414 result = zend_object_is_true(op); in i_zend_is_true()
418 if (EXPECTED(Z_RES_HANDLE_P(op))) { in i_zend_is_true()
423 op = Z_REFVAL_P(op); in i_zend_is_true()
908 static zend_always_inline void zend_unwrap_reference(zval *op) /* {{{ */ in zend_unwrap_reference() argument
910 if (Z_REFCOUNT_P(op) == 1) { in zend_unwrap_reference()
911 ZVAL_UNREF(op); in zend_unwrap_reference()
913 Z_DELREF_P(op); in zend_unwrap_reference()
914 ZVAL_COPY(op, Z_REFVAL_P(op)); in zend_unwrap_reference()