Skip to content

Commit d9b2f79

Browse files
author
foobar
committed
ws pollution removed.
1 parent c78e847 commit d9b2f79

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

ext/standard/image.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ static void php_read_APP(int socketd, FILE *fp, int issock,unsigned int marker,p
235235
length = php_read2(socketd,fp,issock);
236236
length -= 2; /* length includes itself */
237237

238-
buffer = emalloc(length);
238+
buffer = emalloc(length);
239239

240240
if (FP_FREAD(buffer, (long) length, socketd, fp, issock) <= 0) {
241241
efree(buffer);
@@ -281,7 +281,7 @@ static struct gfxinfo *php_handle_jpeg (int socketd, FILE *fp, int issock, pval
281281
result = (struct gfxinfo *) ecalloc(1,sizeof(struct gfxinfo));
282282
FP_FREAD(tmp, sizeof(tmp), socketd, fp, issock);
283283
result->bits = FP_FGETC(socketd,fp,issock);
284-
FP_FREAD(a, sizeof(a), socketd, fp, issock);
284+
FP_FREAD(a, sizeof(a), socketd, fp, issock);
285285
result->height = (((unsigned short) a[ 0 ]) << 8) + ((unsigned short) a[ 1 ]);
286286
result->width = (((unsigned short) a[ 2 ]) << 8) + ((unsigned short) a[ 3 ]);
287287
result->channels = FP_FGETC(socketd,fp,issock);
@@ -312,7 +312,7 @@ static struct gfxinfo *php_handle_jpeg (int socketd, FILE *fp, int issock, pval
312312
if (info) {
313313
php_read_APP(socketd,fp,issock,marker,info); /* read all the app markes... */
314314
} else {
315-
php_skip_variable(socketd,fp,issock);
315+
php_skip_variable(socketd,fp,issock);
316316
}
317317
break;
318318

@@ -344,7 +344,8 @@ PHP_FUNCTION(getimagesize)
344344
char temp[64];
345345
struct gfxinfo *result = NULL;
346346

347-
switch(ZEND_NUM_ARGS()){
347+
switch(ZEND_NUM_ARGS()) {
348+
348349
case 1:
349350
if (zend_get_parameters_ex(1, &arg1) == FAILURE) {
350351
WRONG_PARAM_COUNT;
@@ -357,9 +358,9 @@ PHP_FUNCTION(getimagesize)
357358
WRONG_PARAM_COUNT;
358359
}
359360
if (!ParameterPassedByReference(ht, 2)) {
360-
php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
361-
RETURN_FALSE;
362-
}
361+
php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
362+
RETURN_FALSE;
363+
}
363364

364365
zval_dtor(*info);
365366

0 commit comments

Comments
 (0)