cvs: php4 /ext/standard pack.c

From: Date: Sun, 27 Jan 2002 06:18:05 +0000
Subject: cvs: php4 /ext/standard pack.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-9190@lists.php.net to get a copy of this message
sterling Sun Jan 27 01:18:05 2002 EDT Modified files: /php4/ext/standard pack.c Log: don't throw fatal errors, throw E_WARNING instead. Index: php4/ext/standard/pack.c diff -u php4/ext/standard/pack.c:1.35 php4/ext/standard/pack.c:1.36 --- php4/ext/standard/pack.c:1.35 Tue Dec 11 10:30:34 2001 +++ php4/ext/standard/pack.c Sun Jan 27 01:18:05 2002 @@ -15,7 +15,7 @@ | Authors: Chris Schneider <cschneid@relog.ch> | +----------------------------------------------------------------------+ */ -/* $Id: pack.c,v 1.35 2001/12/11 15:30:34 sebastian Exp $ */ +/* $Id: pack.c,v 1.36 2002/01/27 06:18:05 sterling Exp $ */ #include "php.h" @@ -167,7 +167,7 @@ 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 @@ 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 @@ /* 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; } }

« previous php.cvs (#9190) next »