Lines Matching refs:op

267 ZEND_API void ZEND_FASTCALL convert_scalar_to_number(zval *op);
268 ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op);
269 ZEND_API void ZEND_FASTCALL convert_to_long(zval *op);
270 ZEND_API void ZEND_FASTCALL convert_to_double(zval *op);
271 ZEND_API void ZEND_FASTCALL convert_to_null(zval *op);
272 ZEND_API void ZEND_FASTCALL convert_to_boolean(zval *op);
273 ZEND_API void ZEND_FASTCALL convert_to_array(zval *op);
274 ZEND_API void ZEND_FASTCALL convert_to_object(zval *op);
276 ZEND_API zend_long ZEND_FASTCALL zval_get_long_func(zval *op, bool is_strict);
277 ZEND_API double ZEND_FASTCALL zval_get_double_func(zval *op);
278 ZEND_API zend_string* ZEND_FASTCALL zval_get_string_func(zval *op);
279 ZEND_API zend_string* ZEND_FASTCALL zval_try_get_string_func(zval *op);
281 static zend_always_inline zend_long zval_get_long(zval *op) { in zval_get_long() argument
282 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, false); in zval_get_long()
284 static zend_always_inline zend_long zval_get_long_ex(zval *op, bool is_strict) { in zval_get_long_ex() argument
285 return EXPECTED(Z_TYPE_P(op) == IS_LONG) ? Z_LVAL_P(op) : zval_get_long_func(op, is_strict); in zval_get_long_ex()
287 static zend_always_inline double zval_get_double(zval *op) { in zval_get_double() argument
288 return EXPECTED(Z_TYPE_P(op) == IS_DOUBLE) ? Z_DVAL_P(op) : zval_get_double_func(op); in zval_get_double()
290 static zend_always_inline zend_string *zval_get_string(zval *op) { in zval_get_string() argument
291 …return EXPECTED(Z_TYPE_P(op) == IS_STRING) ? zend_string_copy(Z_STR_P(op)) : zval_get_string_func( in zval_get_string()
294 static zend_always_inline zend_string *zval_get_tmp_string(zval *op, zend_string **tmp) { in zval_get_tmp_string() argument
295 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_get_tmp_string()
297 return Z_STR_P(op); in zval_get_tmp_string()
299 return *tmp = zval_get_string_func(op); in zval_get_tmp_string()
309 static zend_always_inline zend_string *zval_try_get_string(zval *op) { in zval_try_get_string() argument
310 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_string()
311 zend_string *ret = zend_string_copy(Z_STR_P(op)); in zval_try_get_string()
315 return zval_try_get_string_func(op); in zval_try_get_string()
320 static zend_always_inline zend_string *zval_try_get_tmp_string(zval *op, zend_string **tmp) { in zval_try_get_tmp_string() argument
321 if (EXPECTED(Z_TYPE_P(op) == IS_STRING)) { in zval_try_get_tmp_string()
322 zend_string *ret = Z_STR_P(op); in zval_try_get_tmp_string()
327 return *tmp = zval_try_get_string_func(op); in zval_try_get_tmp_string()
333 ZEND_API bool ZEND_FASTCALL _try_convert_to_string(zval *op);
334 static zend_always_inline bool try_convert_to_string(zval *op) { in try_convert_to_string() argument
335 if (Z_TYPE_P(op) == IS_STRING) { in try_convert_to_string()
338 return _try_convert_to_string(op); in try_convert_to_string()
342 #define _zval_get_long(op) zval_get_long(op) argument
343 #define _zval_get_double(op) zval_get_double(op) argument
344 #define _zval_get_string(op) zval_get_string(op) argument
345 #define _zval_get_long_func(op) zval_get_long_func(op) argument
346 #define _zval_get_double_func(op) zval_get_double_func(op) argument
347 #define _zval_get_string_func(op) zval_get_string_func(op) argument
349 #define convert_to_string(op) if (Z_TYPE_P(op) != IS_STRING) { _convert_to_string((op)); } argument
352 ZEND_API int ZEND_FASTCALL zend_is_true(zval *op);
353 ZEND_API bool ZEND_FASTCALL zend_object_is_true(zval *op);
355 #define zval_is_true(op) \ argument
356 zend_is_true(op)
358 static zend_always_inline bool i_zend_is_true(zval *op) in i_zend_is_true() argument
363 switch (Z_TYPE_P(op)) { in i_zend_is_true()
368 if (Z_LVAL_P(op)) { in i_zend_is_true()
373 if (Z_DVAL_P(op)) { in i_zend_is_true()
378 if (Z_STRLEN_P(op) > 1 || (Z_STRLEN_P(op) && Z_STRVAL_P(op)[0] != '0')) { in i_zend_is_true()
383 if (zend_hash_num_elements(Z_ARRVAL_P(op))) { in i_zend_is_true()
388 if (EXPECTED(Z_OBJ_HT_P(op)->cast_object == zend_std_cast_object_tostring)) { in i_zend_is_true()
391 result = zend_object_is_true(op); in i_zend_is_true()
395 if (EXPECTED(Z_RES_HANDLE_P(op))) { in i_zend_is_true()
400 op = Z_REFVAL_P(op); in i_zend_is_true()
890 static zend_always_inline void zend_unwrap_reference(zval *op) /* {{{ */ in zend_unwrap_reference() argument
892 if (Z_REFCOUNT_P(op) == 1) { in zend_unwrap_reference()
893 ZVAL_UNREF(op); in zend_unwrap_reference()
895 Z_DELREF_P(op); in zend_unwrap_reference()
896 ZVAL_COPY(op, Z_REFVAL_P(op)); in zend_unwrap_reference()