Lines Matching refs:expr

377 static void zend_print_zval_r_to_buf(smart_str *buf, zval *expr, int indent);
453 ZEND_API bool zend_make_printable_zval(zval *expr, zval *expr_copy) /* {{{ */ in zend_make_printable_zval() argument
455 if (Z_TYPE_P(expr) == IS_STRING) { in zend_make_printable_zval()
458 ZVAL_STR(expr_copy, zval_get_string_func(expr)); in zend_make_printable_zval()
464 ZEND_API size_t zend_print_zval(zval *expr, int indent) /* {{{ */ in zend_print_zval() argument
467 zend_string *str = zval_get_tmp_string(expr, &tmp_str); in zend_print_zval()
479 void zend_print_flat_zval_r_to_buf(smart_str *buf, zval *expr) /* {{{ */ in zend_print_flat_zval_r_to_buf() argument
481 switch (Z_TYPE_P(expr)) { in zend_print_flat_zval_r_to_buf()
484 if (!(GC_FLAGS(Z_ARRVAL_P(expr)) & GC_IMMUTABLE)) { in zend_print_flat_zval_r_to_buf()
485 if (GC_IS_RECURSIVE(Z_ARRVAL_P(expr))) { in zend_print_flat_zval_r_to_buf()
489 GC_PROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
491 print_flat_hash(buf, Z_ARRVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
493 GC_TRY_UNPROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
498 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); in zend_print_flat_zval_r_to_buf()
503 if (GC_IS_RECURSIVE(Z_COUNTED_P(expr))) { in zend_print_flat_zval_r_to_buf()
508 properties = Z_OBJPROP_P(expr); in zend_print_flat_zval_r_to_buf()
510 GC_PROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_flat_zval_r_to_buf()
512 GC_UNPROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_flat_zval_r_to_buf()
518 zend_print_flat_zval_r_to_buf(buf, Z_REFVAL_P(expr)); in zend_print_flat_zval_r_to_buf()
521 smart_str_append(buf, Z_STR_P(expr)); in zend_print_flat_zval_r_to_buf()
525 zend_string *str = zval_get_string_func(expr); in zend_print_flat_zval_r_to_buf()
534 ZEND_API void zend_print_flat_zval_r(zval *expr) in zend_print_flat_zval_r() argument
537 zend_print_flat_zval_r_to_buf(&buf, expr); in zend_print_flat_zval_r()
543 static void zend_print_zval_r_to_buf(smart_str *buf, zval *expr, int indent) /* {{{ */ in zend_print_zval_r_to_buf() argument
545 switch (Z_TYPE_P(expr)) { in zend_print_zval_r_to_buf()
548 if (!(GC_FLAGS(Z_ARRVAL_P(expr)) & GC_IMMUTABLE)) { in zend_print_zval_r_to_buf()
549 if (GC_IS_RECURSIVE(Z_ARRVAL_P(expr))) { in zend_print_zval_r_to_buf()
553 GC_PROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_zval_r_to_buf()
555 print_hash(buf, Z_ARRVAL_P(expr), indent, 0); in zend_print_zval_r_to_buf()
556 GC_TRY_UNPROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_zval_r_to_buf()
562 zend_object *zobj = Z_OBJ_P(expr); in zend_print_zval_r_to_buf()
564 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(zobj); in zend_print_zval_r_to_buf()
584 if ((properties = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_DEBUG)) == NULL) { in zend_print_zval_r_to_buf()
597 smart_str_append_long(buf, Z_LVAL_P(expr)); in zend_print_zval_r_to_buf()
600 zend_print_zval_r_to_buf(buf, Z_REFVAL_P(expr), indent); in zend_print_zval_r_to_buf()
603 smart_str_append(buf, Z_STR_P(expr)); in zend_print_zval_r_to_buf()
607 zend_string *str = zval_get_string_func(expr); in zend_print_zval_r_to_buf()
616 ZEND_API zend_string *zend_print_zval_r_to_str(zval *expr, int indent) /* {{{ */ in zend_print_zval_r_to_str() argument
619 zend_print_zval_r_to_buf(&buf, expr, indent); in zend_print_zval_r_to_str()
625 ZEND_API void zend_print_zval_r(zval *expr, int indent) /* {{{ */ in zend_print_zval_r() argument
627 zend_string *str = zend_print_zval_r_to_str(expr, indent); in zend_print_zval_r()