summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-03-12 05:57:28 +0000
committerMarcus Boerger <helly@php.net>2002-03-12 05:57:28 +0000
commit1c1401787ab7eeaebb9982b05e429c4119c51464 (patch)
treefd9c65ff005d9e4a5cbefc78ec347dbbf440af14
parent902167c255c6811c3aff7c44d39b2e142362de4e (diff)
downloadphp-git-1c1401787ab7eeaebb9982b05e429c4119c51464.tar.gz
-merged a wrong line
#this comes later, i left the documentation onthat) -one compiling issue #maybe some comilers get angry on the old form
-rw-r--r--ext/standard/image.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 87f05751e9..de91aa3332 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -269,7 +269,9 @@ static unsigned int php_next_marker(int socketd, FILE *fp, int issock)
return M_EOI; /* we hit EOF */
if (++a >= 10) return M_EOI;
} while (c == 0xff);
- if (a<2) c = M_EOI; /* at least one 0xff is needed before marker code */
+/* if (a<2) c = M_EOI; at least one 0xff is needed before marker code */
+/* this test will be enabled in 4.3 because we must know if we already */
+/* handled the 0xff from image-start. */
return (unsigned int) c;
}
/* }}} */
@@ -294,7 +296,8 @@ static void php_skip_over(int socketd, FILE *fp, int issock, size_t length)
* skip over a variable-length block; assumes proper length marker */
static void php_skip_variable(int socketd, FILE *fp, int issock)
{
- php_skip_over( socketd, fp, issock, php_read2(socketd, fp, issock)-2);
+ size_t length = php_read2(socketd, fp, issock); /* compiler issue */
+ php_skip_over( socketd, fp, issock, length-2);
}
/* }}} */