]> granicus.if.org Git - php/commitdiff
bin2hex() should accept only binary strings.
authorAndrei Zmievski <andrei@php.net>
Wed, 2 Aug 2006 20:38:39 +0000 (20:38 +0000)
committerAndrei Zmievski <andrei@php.net>
Wed, 2 Aug 2006 20:38:39 +0000 (20:38 +0000)
ext/standard/string.c

index aa38b608a91de2dc518c991b8e6dca2aba28e8f8..a05953c6e7528b63ac587e37692c22b342c30ea1 100644 (file)
@@ -195,7 +195,7 @@ PHP_FUNCTION(bin2hex)
        char *result;
        size_t newlen;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &data, &data_len) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "S", &data, &data_len) == FAILURE) {
                return;
        }