From: Sterling Hughes Date: Sun, 27 Jan 2002 06:18:05 +0000 (+0000) Subject: don't throw fatal errors, throw E_WARNING instead. X-Git-Tag: PRE_ISSET_PATCH~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d59ff42d4ffb5fb994703aa4508f2d170110c33;p=php don't throw fatal errors, throw E_WARNING instead. --- diff --git a/ext/standard/pack.c b/ext/standard/pack.c index 0dc5055528..395add96d3 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -167,7 +167,7 @@ PHP_FUNCTION(pack) efree(argv); efree(formatcodes); efree(formatargs); - php_error(E_ERROR, "pack type %c: not enough arguments", code); + php_error(E_WARNING, "pack type %c: not enough arguments", code); RETURN_FALSE; } @@ -203,13 +203,13 @@ PHP_FUNCTION(pack) efree(argv); efree(formatcodes); efree(formatargs); - php_error(E_ERROR, "pack type %c: too few arguments", code); + php_error(E_WARNING, "pack type %c: too few arguments", code); RETURN_FALSE; } break; default: - php_error(E_ERROR, "pack type %c: unknown format code", code); + php_error(E_WARNING, "pack type %c: unknown format code", code); RETURN_FALSE; } @@ -808,7 +808,7 @@ PHP_FUNCTION(unpack) /* Reached end of input for '*' repeater */ break; } else { - php_error(E_ERROR, "pack type %c: not enough input, need %d, have %d", type, size, inputlen - inputpos); + php_error(E_WARNING, "pack type %c: not enough input, need %d, have %d", type, size, inputlen - inputpos); RETURN_FALSE; } }