]> granicus.if.org Git - php/commitdiff
Flag a couple more unicode ready functions
authorSara Golemon <pollita@php.net>
Mon, 25 Sep 2006 01:33:57 +0000 (01:33 +0000)
committerSara Golemon <pollita@php.net>
Mon, 25 Sep 2006 01:33:57 +0000 (01:33 +0000)
ext/standard/crc32.c
ext/standard/crypt.c

index 484a2786c68a11c9c6f9b64567e1526f86b84c3f..5d6a7192b2701c207a09586e7e88e7ebf5d4fd63 100644 (file)
@@ -22,7 +22,7 @@
 #include "basic_functions.h"
 #include "crc32.h"
 
-/* {{{ proto string crc32(string str)
+/* {{{ proto string crc32(string str) U
    Calculate the crc32 polynomial of a string */
 PHP_NAMED_FUNCTION(php_if_crc32)
 {
@@ -31,7 +31,7 @@ PHP_NAMED_FUNCTION(php_if_crc32)
        php_uint32 crcinit = 0;
        register php_uint32 crc;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &p, &nr) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &p, &nr) == FAILURE) {
                return;
        }
        crc = crcinit^0xFFFFFFFF;
index b147f88b0f2893e8fa5b8f7d3c092499d575092f..7d1eea0b765b8e3c1f492395ed7993beb3ba6d58 100644 (file)
@@ -111,8 +111,8 @@ static void php_to64(char *s, long v, int n)
        } 
 } 
 
-/* {{{ proto string crypt(string str [, string salt])
-   Encrypt a string */
+/* {{{ proto string crypt(string str [, string salt]) U
+   Hash a string */
 PHP_FUNCTION(crypt)
 {
        char salt[PHP_MAX_SALT_LEN+1];
@@ -124,7 +124,7 @@ PHP_FUNCTION(crypt)
           available (passing always 2-character salt). At least for glibc6.1 */
        memset(&salt[1], '$', PHP_MAX_SALT_LEN-1);
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len,
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S|S", &str, &str_len,
                                                          &salt_in, &salt_in_len) == FAILURE) {
                return;
        }