On Fri, 05 Mar 2004 22:18:09 +0200
[EMAIL PROTECTED] (Andi Gutmans) wrote:

> definitely be fixed. A couple of others don't look like show
> stoppers. If there's anyone here who can look at the non-Zend
> Engine ones that would be nice. 

Is it ok to commit this patch (attachment) to fix #27238? (Do not
know who still maintain this part)

pierre

Index: iptc.c
===================================================================
RCS file: /repository/php-src/ext/standard/iptc.c,v
retrieving revision 1.45
diff -u -u -p -r1.45 iptc.c
--- iptc.c      8 Jan 2004 08:17:33 -0000       1.45
+++ iptc.c      5 Mar 2004 20:22:56 -0000
@@ -320,7 +320,7 @@ PHP_FUNCTION(iptcparse)
        tagsfound = 0; /* number of tags already found */
 
        while (inx < length) { /* find 1st tag */
-               if ((buffer[inx] == 0x1c) && (buffer[inx+1] == 0x02)){ 
+               if ((buffer[inx] == 0x1c) && ((buffer[inx+1] == 0x01) || 
(buffer[inx+1] == 0x02))){ 
                        break;
                } else {
                        inx++;

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to