From: Yasuo Ohgaki Date: Mon, 8 Jul 2013 10:14:45 +0000 (+0900) Subject: Added warning for hex2bin() when input is invalid string X-Git-Tag: php-5.5.2RC1~17^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bde0f1318a967759dbda538f3c522defb5e9d294;p=php Added warning for hex2bin() when input is invalid string --- diff --git a/ext/standard/string.c b/ext/standard/string.c index f3f78100b4..bc610659e5 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -280,6 +280,7 @@ PHP_FUNCTION(hex2bin) result = php_hex2bin((unsigned char *)data, datalen, &newlen); if (!result) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Input string must be hexadecimal string"); RETURN_FALSE; }