Lines Matching refs:op
302 ZEND_API void ZEND_FASTCALL convert_scalar_to_number(zval *op);
303 ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op);
304 ZEND_API void ZEND_FASTCALL convert_to_long(zval *op);
305 ZEND_API void ZEND_FASTCALL convert_to_double(zval *op);
306 ZEND_API void ZEND_FASTCALL convert_to_null(zval *op);
307 ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op);
308 ZEND_API void ZEND_FASTCALL convert_to_array(zval *op);
309 ZEND_API void ZEND_FASTCALL convert_to_object(zval *op);
311 ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(const zval *op, bool is_strict);
312 ZEND_API zend_long ZEND_FASTCALL zval_try_get_long(const zval *op, bool *failed);
313 ZEND_API double ZEND_FASTCALL zval_get_double_func(const zval *op);
314 ZEND_API zend_string* ZEND_FASTCALL zval_get_string_func(zval *op);
315 ZEND_API zend_string* ZEND_FASTCALL zval_try_get_string_func(zval *op);
317 static zend_always_inline zend_long zval_get_long(const zval *op) { in zval_get_long() argument
318 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, false); in zval_get_long()
320 static zend_always_inline zend_long zval_get_long_ex(const zval *op, bool is_strict) { in zval_get_long_ex() argument
321 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, is_strict); in zval_get_long_ex()
323 static zend_always_inline double zval_get_double(const zval *op) { in zval_get_double() argument
324 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double()
326 static zend_always_inline zend_string *zval_get_string(zval *op) { in zval_get_string() argument
327 …return EXPECTED(Z_TYPE_P(op) == IS_STRING) ? zend_string_copy(Z_STR_P(op)) : zval_get_string_func(… in zval_get_string()
330 static zend_always_inline zend_string *zval_get_tmp_string(zval *op, zend_string **tmp) { in zval_get_tmp_string() argument
331 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_get_tmp_string()
333 return Z_STR_P(op); in zval_get_tmp_string()
335 return *tmp = zval_get_string_func(op); in zval_get_tmp_string()
345 static zend_always_inline zend_string *zval_try_get_string(zval *op) { in zval_try_get_string() argument
346 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_string()
347 zend_string *ret = zend_string_copy(Z_STR_P(op)); in zval_try_get_string()
351 return zval_try_get_string_func(op); in zval_try_get_string()
356 static zend_always_inline zend_string *zval_try_get_tmp_string(zval *op, zend_string **tmp) { in zval_try_get_tmp_string() argument
357 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_tmp_string()
358 zend_string *ret = Z_STR_P(op); in zval_try_get_tmp_string()
363 return *tmp = zval_try_get_string_func(op); in zval_try_get_tmp_string()
369 ZEND_API bool ZEND_FASTCALL _try_convert_to_string(zval *op);
370 static zend_always_inline bool try_convert_to_string(zval *op) { in try_convert_to_string() argument
371 if (Z_TYPE_P(op) == IS_STRING) { in try_convert_to_string()
374 return _try_convert_to_string(op); in try_convert_to_string()
378 #define _zval_get_long(op) zval_get_long(op) argument
379 #define _zval_get_double(op) zval_get_double(op) argument
380 #define _zval_get_string(op) zval_get_string(op) argument
381 #define _zval_get_long_func(op) zval_get_long_func(op) argument
382 #define _zval_get_double_func(op) zval_get_double_func(op) argument
383 #define _zval_get_string_func(op) zval_get_string_func(op) argument
385 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); } argument
388 ZEND_API bool ZEND_FASTCALL zend_is_true(const zval *op);
389 ZEND_API bool ZEND_FASTCALL zend_object_is_true(const zval *op);
391 #define zval_is_true(op) \ argument
392 zend_is_true(op)
394 static zend_always_inline bool i_zend_is_true(const zval *op) in i_zend_is_true() argument
399 switch (Z_TYPE_P(op)) { in i_zend_is_true()
404 if (Z_LVAL_P(op)) { in i_zend_is_true()
409 if (Z_DVAL_P(op)) { in i_zend_is_true()
414 if (Z_STRLEN_P(op) > 1 || (Z_STRLEN_P(op) && Z_STRVAL_P(op)[0] != '0')) { in i_zend_is_true()
419 if (zend_hash_num_elements(Z_ARRVAL_P(op))) { in i_zend_is_true()
424 if (EXPECTED(Z_OBJ_HT_P(op)->cast_object == zend_std_cast_object_tostring)) { in i_zend_is_true()
427 result = zend_object_is_true(op); in i_zend_is_true()
431 if (EXPECTED(Z_RES_HANDLE_P(op))) { in i_zend_is_true()
436 op = Z_REFVAL_P(op); in i_zend_is_true()
921 static zend_always_inline void zend_unwrap_reference(zval *op) /* {{{ */ in zend_unwrap_reference() argument
923 if (Z_REFCOUNT_P(op) == 1) { in zend_unwrap_reference()
924 ZVAL_UNREF(op); in zend_unwrap_reference()
926 Z_DELREF_P(op); in zend_unwrap_reference()
927 ZVAL_COPY(op, Z_REFVAL_P(op)); in zend_unwrap_reference()