]> granicus.if.org Git - php/commitdiff
be consistent with non-unicode implementation
authorAntony Dovgal <tony2001@php.net>
Tue, 6 Mar 2007 20:35:49 +0000 (20:35 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 6 Mar 2007 20:35:49 +0000 (20:35 +0000)
ext/standard/var.c

index e450f2154adb0b363d1b2f481b0ab7d5fb0c3580..c887fec13b6970a960f73dd5ee2e90f3028b0965 100644 (file)
@@ -539,7 +539,7 @@ static void php_unicode_export(UChar *ustr, int ustr_len TSRMLS_DC)
                U16_NEXT(ustr, i, ustr_len, cp);
                switch (cp) {
                        case 0x0: /* '\0' */
-                               PHPWRITE("\\0", 2);
+                               PHPWRITE("\\000", 4);
                                break;
 
                        case 0x27: /* '\'' */