Lines Matching refs:expr

309 static void zend_print_zval_r_to_buf(smart_str *buf, zval *expr, int indent);
385 ZEND_API bool zend_make_printable_zval(zval *expr, zval *expr_copy) /* {{{ */ in zend_make_printable_zval() argument
387 if (Z_TYPE_P(expr) == IS_STRING) { in zend_make_printable_zval()
390 ZVAL_STR(expr_copy, zval_get_string_func(expr)); in zend_make_printable_zval()
396 ZEND_API size_t zend_print_zval(zval *expr, int indent) /* {{{ */ in zend_print_zval() argument
399 zend_string *str = zval_get_tmp_string(expr, &tmp_str); in zend_print_zval()
411 void zend_print_flat_zval_r_to_buf(smart_str *buf, zval *expr) /* {{{ */ in zend_print_flat_zval_r_to_buf() argument
413 switch (Z_TYPE_P(expr)) { in zend_print_flat_zval_r_to_buf()
416 if (!(GC_FLAGS(Z_ARRVAL_P(expr)) & GC_IMMUTABLE)) { in zend_print_flat_zval_r_to_buf()
417 if (GC_IS_RECURSIVE(Z_ARRVAL_P(expr))) { in zend_print_flat_zval_r_to_buf()
421 GC_PROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
423 print_flat_hash(buf, Z_ARRVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
425 GC_TRY_UNPROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
430 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); in zend_print_flat_zval_r_to_buf()
435 if (GC_IS_RECURSIVE(Z_COUNTED_P(expr))) { in zend_print_flat_zval_r_to_buf()
440 properties = Z_OBJPROP_P(expr); in zend_print_flat_zval_r_to_buf()
442 GC_PROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_flat_zval_r_to_buf()
444 GC_UNPROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_flat_zval_r_to_buf()
450 zend_print_flat_zval_r_to_buf(buf, Z_REFVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
453 smart_str_append(buf, Z_STR_P(expr)); in zend_print_flat_zval_r_to_buf()
457 zend_string *str = zval_get_string_func(expr); in zend_print_flat_zval_r_to_buf()
466 ZEND_API void zend_print_flat_zval_r(zval *expr) in zend_print_flat_zval_r() argument
469 zend_print_flat_zval_r_to_buf(&buf, expr); in zend_print_flat_zval_r()
475 static void zend_print_zval_r_to_buf(smart_str *buf, zval *expr, int indent) /* {{{ */ in zend_print_zval_r_to_buf() argument
477 switch (Z_TYPE_P(expr)) { in zend_print_zval_r_to_buf()
480 if (!(GC_FLAGS(Z_ARRVAL_P(expr)) & GC_IMMUTABLE)) { in zend_print_zval_r_to_buf()
481 if (GC_IS_RECURSIVE(Z_ARRVAL_P(expr))) { in zend_print_zval_r_to_buf()
485 GC_PROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_zval_r_to_buf()
487 print_hash(buf, Z_ARRVAL_P(expr), indent, 0); in zend_print_zval_r_to_buf()
488 GC_TRY_UNPROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_zval_r_to_buf()
494 zend_object *zobj = Z_OBJ_P(expr); in zend_print_zval_r_to_buf()
495 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(zobj); in zend_print_zval_r_to_buf()
510 if (GC_IS_RECURSIVE(Z_OBJ_P(expr))) { in zend_print_zval_r_to_buf()
515 if ((properties = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_DEBUG)) == NULL) { in zend_print_zval_r_to_buf()
519 GC_PROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_zval_r_to_buf()
521 GC_UNPROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_zval_r_to_buf()
527 smart_str_append_long(buf, Z_LVAL_P(expr)); in zend_print_zval_r_to_buf()
530 zend_print_zval_r_to_buf(buf, Z_REFVAL_P(expr), indent); in zend_print_zval_r_to_buf()
533 smart_str_append(buf, Z_STR_P(expr)); in zend_print_zval_r_to_buf()
537 zend_string *str = zval_get_string_func(expr); in zend_print_zval_r_to_buf()
546 ZEND_API zend_string *zend_print_zval_r_to_str(zval *expr, int indent) /* {{{ */ in zend_print_zval_r_to_str() argument
549 zend_print_zval_r_to_buf(&buf, expr, indent); in zend_print_zval_r_to_str()
555 ZEND_API void zend_print_zval_r(zval *expr, int indent) /* {{{ */ in zend_print_zval_r() argument
557 zend_string *str = zend_print_zval_r_to_str(expr, indent); in zend_print_zval_r()