]> granicus.if.org Git - php/commitdiff
Make a UTODO note.
authorAndrei Zmievski <andrei@php.net>
Mon, 27 Mar 2006 21:19:12 +0000 (21:19 +0000)
committerAndrei Zmievski <andrei@php.net>
Mon, 27 Mar 2006 21:19:12 +0000 (21:19 +0000)
ext/standard/var.c

index 5918a5bced6137f2d20e2cf14761bf8d52cc7610..cc5dd0a894f3b18d0590dcf4d950e5de14377db3 100644 (file)
@@ -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) {