Lines Matching refs:op

293 ZEND_API void ZEND_FASTCALL convert_scalar_to_number(zval *op);
294 ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op);
295 ZEND_API void ZEND_FASTCALL convert_to_long(zval *op);
296 ZEND_API void ZEND_FASTCALL convert_to_double(zval *op);
297 ZEND_API void ZEND_FASTCALL convert_to_null(zval *op);
298 ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op);
299 ZEND_API void ZEND_FASTCALL convert_to_array(zval *op);
300 ZEND_API void ZEND_FASTCALL convert_to_object(zval *op);
302 ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(const zval *op, bool is_strict);
303 ZEND_API zend_long ZEND_FASTCALL zval_try_get_long(const zval *op, bool *failed);
304 ZEND_API double ZEND_FASTCALL zval_get_double_func(const zval *op);
305 ZEND_API zend_string* ZEND_FASTCALL zval_get_string_func(zval *op);
306 ZEND_API zend_string* ZEND_FASTCALL zval_try_get_string_func(zval *op);
308 static zend_always_inline zend_long zval_get_long(const zval *op) { in zval_get_long() argument
309 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, false); in zval_get_long()
311 static zend_always_inline zend_long zval_get_long_ex(const zval *op, bool is_strict) { in zval_get_long_ex() argument
312 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, is_strict); in zval_get_long_ex()
314 static zend_always_inline double zval_get_double(const zval *op) { in zval_get_double() argument
315 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double()
317 static zend_always_inline zend_string *zval_get_string(zval *op) { in zval_get_string() argument
318 …return EXPECTED(Z_TYPE_P(op) == IS_STRING) ? zend_string_copy(Z_STR_P(op)) : zval_get_string_func( in zval_get_string()
321 static zend_always_inline zend_string *zval_get_tmp_string(zval *op, zend_string **tmp) { in zval_get_tmp_string() argument
322 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_get_tmp_string()
324 return Z_STR_P(op); in zval_get_tmp_string()
326 return *tmp = zval_get_string_func(op); in zval_get_tmp_string()
336 static zend_always_inline zend_string *zval_try_get_string(zval *op) { in zval_try_get_string() argument
337 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_string()
338 zend_string *ret = zend_string_copy(Z_STR_P(op)); in zval_try_get_string()
342 return zval_try_get_string_func(op); in zval_try_get_string()
347 static zend_always_inline zend_string *zval_try_get_tmp_string(zval *op, zend_string **tmp) { in zval_try_get_tmp_string() argument
348 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_tmp_string()
349 zend_string *ret = Z_STR_P(op); in zval_try_get_tmp_string()
354 return *tmp = zval_try_get_string_func(op); in zval_try_get_tmp_string()
360 ZEND_API bool ZEND_FASTCALL _try_convert_to_string(zval *op);
361 static zend_always_inline bool try_convert_to_string(zval *op) { in try_convert_to_string() argument
362 if (Z_TYPE_P(op) == IS_STRING) { in try_convert_to_string()
365 return _try_convert_to_string(op); in try_convert_to_string()
369 #define _zval_get_long(op) zval_get_long(op) argument
370 #define _zval_get_double(op) zval_get_double(op) argument
371 #define _zval_get_string(op) zval_get_string(op) argument
372 #define _zval_get_long_func(op) zval_get_long_func(op) argument
373 #define _zval_get_double_func(op) zval_get_double_func(op) argument
374 #define _zval_get_string_func(op) zval_get_string_func(op) argument
376 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); } argument
379 ZEND_API int ZEND_FASTCALL zend_is_true(const zval *op);
380 ZEND_API bool ZEND_FASTCALL zend_object_is_true(const zval *op);
382 #define zval_is_true(op) \ argument
383 zend_is_true(op)
385 static zend_always_inline bool i_zend_is_true(const zval *op) in i_zend_is_true() argument
390 switch (Z_TYPE_P(op)) { in i_zend_is_true()
395 if (Z_LVAL_P(op)) { in i_zend_is_true()
400 if (Z_DVAL_P(op)) { in i_zend_is_true()
405 if (Z_STRLEN_P(op) > 1 || (Z_STRLEN_P(op) && Z_STRVAL_P(op)[0] != '0')) { in i_zend_is_true()
410 if (zend_hash_num_elements(Z_ARRVAL_P(op))) { in i_zend_is_true()
415 if (EXPECTED(Z_OBJ_HT_P(op)->cast_object == zend_std_cast_object_tostring)) { in i_zend_is_true()
418 result = zend_object_is_true(op); in i_zend_is_true()
422 if (EXPECTED(Z_RES_HANDLE_P(op))) { in i_zend_is_true()
427 op = Z_REFVAL_P(op); in i_zend_is_true()
912 static zend_always_inline void zend_unwrap_reference(zval *op) /* {{{ */ in zend_unwrap_reference() argument
914 if (Z_REFCOUNT_P(op) == 1) { in zend_unwrap_reference()
915 ZVAL_UNREF(op); in zend_unwrap_reference()
917 Z_DELREF_P(op); in zend_unwrap_reference()
918 ZVAL_COPY(op, Z_REFVAL_P(op)); in zend_unwrap_reference()