From 0d59ff42d4ffb5fb994703aa4508f2d170110c33 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sun, 27 Jan 2002 06:18:05 +0000 Subject: [PATCH] don't throw fatal errors, throw E_WARNING instead. --- ext/standard/pack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.50.1