diff options
author | Sterling Hughes <sterling@php.net> | 2002-01-27 06:18:05 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2002-01-27 06:18:05 +0000 |
commit | 0d59ff42d4ffb5fb994703aa4508f2d170110c33 (patch) | |
tree | 86f1b103bf73bb1671a9f81dffeaebdee13108ef /ext/standard/pack.c | |
parent | 094873c6d2ef138bdd6ab6742f2db2842941ce0f (diff) | |
download | php-git-0d59ff42d4ffb5fb994703aa4508f2d170110c33.tar.gz |
don't throw fatal errors, throw E_WARNING instead.
Diffstat (limited to 'ext/standard/pack.c')
-rw-r--r-- | ext/standard/pack.c | 8 |
1 files 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; } } |