cvs: php-src /ext/standard pack.c

From: Date: Tue, 25 Jan 2005 22:50:41 +0000
Subject: cvs: php-src /ext/standard pack.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-30149@lists.php.net to get a copy of this message
iliaa Tue Jan 25 17:50:41 2005 EDT Modified files: /php-src/ext/standard pack.c Log: Fixed bug #31465 (False warning in unpack() when working with *). http://cvs.php.net/diff.php/php-src/ext/standard/pack.c?r1=1.54&r2=1.55&ty=u Index: php-src/ext/standard/pack.c diff -u php-src/ext/standard/pack.c:1.54 php-src/ext/standard/pack.c:1.55 --- php-src/ext/standard/pack.c:1.54 Sun Nov 28 07:44:28 2004 +++ php-src/ext/standard/pack.c Tue Jan 25 17:50:39 2005 @@ -15,7 +15,7 @@ | Author: Chris Schneider <cschneid@relog.ch> | +----------------------------------------------------------------------+ */ -/* $Id: pack.c,v 1.54 2004/11/28 12:44:28 sesser Exp $ */ +/* $Id: pack.c,v 1.55 2005/01/25 22:50:39 iliaa Exp $ */ #include "php.h" @@ -830,7 +830,9 @@ inputpos += size; if (inputpos < 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: outside of string", type); + if (size != -1) { /* only print warning if not working with * */ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Type %c: outside of string", type); + } inputpos = 0; } } else if (arg < 0) {

« previous php.cvs (#30149) next »