]> granicus.if.org Git - php/commitdiff
base64 functions are basicly binary-only ops
authorSara Golemon <pollita@php.net>
Mon, 25 Sep 2006 01:27:11 +0000 (01:27 +0000)
committerSara Golemon <pollita@php.net>
Mon, 25 Sep 2006 01:27:11 +0000 (01:27 +0000)
ext/standard/base64.c

index efa5b9623903358a21a2ad2be578b9b756b7a230..7b639159183791cc6e88fc448e48852b5e4f6ed5 100644 (file)
@@ -203,7 +203,7 @@ PHPAPI unsigned char *php_base64_decode_ex(const unsigned char *str, int length,
 }
 /* }}} */
 
-/* {{{ proto string base64_encode(string str)
+/* {{{ proto string base64_encode(string str) U
    Encodes string using MIME base64 algorithm */
 PHP_FUNCTION(base64_encode)
 {
@@ -211,7 +211,7 @@ PHP_FUNCTION(base64_encode)
        unsigned char *result;
        int str_len, ret_length;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &str, &str_len) == FAILURE) {
                return;
        }
        result = php_base64_encode((unsigned char*)str, str_len, &ret_length);
@@ -224,7 +224,7 @@ PHP_FUNCTION(base64_encode)
 /* }}} */
 
 
-/* {{{ proto string base64_decode(string str[, bool strict])
+/* {{{ proto string base64_decode(string str[, bool strict]) U
    Decodes string using MIME base64 algorithm */
 PHP_FUNCTION(base64_decode)
 {