Lines Matching refs:expr

291 static void zend_print_zval_r_to_buf(smart_str *buf, zval *expr, int indent);
367 ZEND_API bool zend_make_printable_zval(zval *expr, zval *expr_copy) /* {{{ */ in zend_make_printable_zval() argument
369 if (Z_TYPE_P(expr) == IS_STRING) { in zend_make_printable_zval()
372 ZVAL_STR(expr_copy, zval_get_string_func(expr)); in zend_make_printable_zval()
378 ZEND_API size_t zend_print_zval(zval *expr, int indent) /* {{{ */ in zend_print_zval() argument
381 zend_string *str = zval_get_tmp_string(expr, &tmp_str); in zend_print_zval()
393 ZEND_API void zend_print_flat_zval_r(zval *expr) /* {{{ */ in zend_print_flat_zval_r() argument
395 switch (Z_TYPE_P(expr)) { in zend_print_flat_zval_r()
398 if (!(GC_FLAGS(Z_ARRVAL_P(expr)) & GC_IMMUTABLE)) { in zend_print_flat_zval_r()
399 if (GC_IS_RECURSIVE(Z_ARRVAL_P(expr))) { in zend_print_flat_zval_r()
403 GC_PROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_flat_zval_r()
405 print_flat_hash(Z_ARRVAL_P(expr)); in zend_print_flat_zval_r()
407 GC_TRY_UNPROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_flat_zval_r()
412 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); in zend_print_flat_zval_r()
416 if (GC_IS_RECURSIVE(Z_COUNTED_P(expr))) { in zend_print_flat_zval_r()
421 properties = Z_OBJPROP_P(expr); in zend_print_flat_zval_r()
423 GC_PROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_flat_zval_r()
425 GC_UNPROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_flat_zval_r()
431 zend_print_flat_zval_r(Z_REFVAL_P(expr)); in zend_print_flat_zval_r()
434 zend_print_zval(expr, 0); in zend_print_flat_zval_r()
440 static void zend_print_zval_r_to_buf(smart_str *buf, zval *expr, int indent) /* {{{ */ in zend_print_zval_r_to_buf() argument
442 switch (Z_TYPE_P(expr)) { in zend_print_zval_r_to_buf()
445 if (!(GC_FLAGS(Z_ARRVAL_P(expr)) & GC_IMMUTABLE)) { in zend_print_zval_r_to_buf()
446 if (GC_IS_RECURSIVE(Z_ARRVAL_P(expr))) { in zend_print_zval_r_to_buf()
450 GC_PROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_zval_r_to_buf()
452 print_hash(buf, Z_ARRVAL_P(expr), indent, 0); in zend_print_zval_r_to_buf()
453 GC_TRY_UNPROTECT_RECURSION(Z_ARRVAL_P(expr)); in zend_print_zval_r_to_buf()
459 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(Z_OBJ_P(expr)); in zend_print_zval_r_to_buf()
464 if (GC_IS_RECURSIVE(Z_OBJ_P(expr))) { in zend_print_zval_r_to_buf()
469 if ((properties = zend_get_properties_for(expr, ZEND_PROP_PURPOSE_DEBUG)) == NULL) { in zend_print_zval_r_to_buf()
473 GC_PROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_zval_r_to_buf()
475 GC_UNPROTECT_RECURSION(Z_OBJ_P(expr)); in zend_print_zval_r_to_buf()
481 smart_str_append_long(buf, Z_LVAL_P(expr)); in zend_print_zval_r_to_buf()
484 zend_print_zval_r_to_buf(buf, Z_REFVAL_P(expr), indent); in zend_print_zval_r_to_buf()
487 smart_str_append(buf, Z_STR_P(expr)); in zend_print_zval_r_to_buf()
491 zend_string *str = zval_get_string_func(expr); in zend_print_zval_r_to_buf()
500 ZEND_API zend_string *zend_print_zval_r_to_str(zval *expr, int indent) /* {{{ */ in zend_print_zval_r_to_str() argument
503 zend_print_zval_r_to_buf(&buf, expr, indent); in zend_print_zval_r_to_str()
509 ZEND_API void zend_print_zval_r(zval *expr, int indent) /* {{{ */ in zend_print_zval_r() argument
511 zend_string *str = zend_print_zval_r_to_str(expr, indent); in zend_print_zval_r()