]> granicus.if.org Git - php/commitdiff
upgrade tidy_get_release() to unicode.
authorNuno Lopes <nlopess@php.net>
Sun, 23 Apr 2006 12:56:10 +0000 (12:56 +0000)
committerNuno Lopes <nlopess@php.net>
Sun, 23 Apr 2006 12:56:10 +0000 (12:56 +0000)
#say now if anything is wrong before I start upgrading the rest of the functions

ext/tidy/tidy.c

index 9683939d6d6c21b89dc688b319c59bb9efcf35c9..6f16e2c941ae4424899b90c62790aa6fd6de655d 100644 (file)
@@ -1191,7 +1191,7 @@ PHP_FUNCTION(tidy_diagnose)
 }
 /* }}} */
 
-/* {{{ proto string tidy_get_release()
+/* {{{ proto string tidy_get_release() U
    Get release date (version) for Tidy library */
 PHP_FUNCTION(tidy_get_release)
 {
@@ -1201,7 +1201,7 @@ PHP_FUNCTION(tidy_get_release)
                WRONG_PARAM_COUNT;
        }
 
-       RETURN_STRING((char *)tidyReleaseDate(), 1);
+       RETURN_ASCII_STRING((char *)tidyReleaseDate(), ZSTR_DUPLICATE);
 }
 /* }}} */