From: Derick Rethans Date: Sun, 24 Feb 2002 14:07:10 +0000 (+0000) Subject: - Fix the fix.. no need to escape " in single quotes X-Git-Tag: php-4.2.0RC1~281 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5a0fd24a1f69b7513387e9c3448a54909ded6c9;p=php - Fix the fix.. no need to escape " in single quotes --- diff --git a/ext/standard/var.c b/ext/standard/var.c index d63ea712ce..4190ab03b0 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -273,7 +273,7 @@ void php_var_export(zval **struc, int level TSRMLS_DC) php_printf("%.*G", (int) EG(precision), Z_DVAL_PP(struc)); break; case IS_STRING: - tmp_str = php_addslashes(Z_STRVAL_PP(struc), Z_STRLEN_PP(struc), &tmp_len, 0 TSRMLS_CC); + tmp_str = php_addcslashes(Z_STRVAL_PP(struc), Z_STRLEN_PP(struc), &tmp_len, 0, "'\\", 2 TSRMLS_CC); PUTS ("'"); PHPWRITE(tmp_str, tmp_len); PUTS ("'");