Commit: bde0f1318a967759dbda538f3c522defb5e9d294 Author: Yasuo Ohgaki <yohg...@php.net> Mon, 8 Jul 2013 19:14:45 +0900 Parents: bdfe70ab343bbdb957fa7d76b7c89ec75cd664f6 Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bde0f1318a967759dbda538f3c522defb5e9d294 Log: Added warning for hex2bin() when input is invalid string Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index f3f7810..bc61065 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; } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php