From: Andrei Zmievski Date: Mon, 27 Mar 2006 21:19:12 +0000 (+0000) Subject: Make a UTODO note. X-Git-Tag: RELEASE_1_3~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=626be75d6cfa90b80e07e3360bdcc5c0a5220677;p=php Make a UTODO note. --- diff --git a/ext/standard/var.c b/ext/standard/var.c index 5918a5bced..cc5dd0a894 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -605,6 +605,12 @@ PHP_FUNCTION(var_export) php_start_ob_buffer (NULL, 0, 1 TSRMLS_CC); } + /* UTODO + * We need to escape non-ASCII chars with \uXXXX format. php_var_export() + * currently uses output_encoding to export Unicode strings. Support it's + * set to utf-8. If you use the result of var_export() in non-utf-8 context, + * there may be trouble. + */ php_var_export(&var, 1 TSRMLS_CC); if (return_output) {