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 <[EMAIL PROTECTED]>                          |
    +----------------------------------------------------------------------+
  */
-/* $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) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to