@@ -235,7 +235,7 @@ static void php_read_APP(int socketd, FILE *fp, int issock,unsigned int marker,p
235
235
length = php_read2 (socketd ,fp ,issock );
236
236
length -= 2 ; /* length includes itself */
237
237
238
- buffer = emalloc (length );
238
+ buffer = emalloc (length );
239
239
240
240
if (FP_FREAD (buffer , (long ) length , socketd , fp , issock ) <= 0 ) {
241
241
efree (buffer );
@@ -281,7 +281,7 @@ static struct gfxinfo *php_handle_jpeg (int socketd, FILE *fp, int issock, pval
281
281
result = (struct gfxinfo * ) ecalloc (1 ,sizeof (struct gfxinfo ));
282
282
FP_FREAD (tmp , sizeof (tmp ), socketd , fp , issock );
283
283
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 );
285
285
result -> height = (((unsigned short ) a [ 0 ]) << 8 ) + ((unsigned short ) a [ 1 ]);
286
286
result -> width = (((unsigned short ) a [ 2 ]) << 8 ) + ((unsigned short ) a [ 3 ]);
287
287
result -> channels = FP_FGETC (socketd ,fp ,issock );
@@ -312,7 +312,7 @@ static struct gfxinfo *php_handle_jpeg (int socketd, FILE *fp, int issock, pval
312
312
if (info ) {
313
313
php_read_APP (socketd ,fp ,issock ,marker ,info ); /* read all the app markes... */
314
314
} else {
315
- php_skip_variable (socketd ,fp ,issock );
315
+ php_skip_variable (socketd ,fp ,issock );
316
316
}
317
317
break ;
318
318
@@ -344,7 +344,8 @@ PHP_FUNCTION(getimagesize)
344
344
char temp [64 ];
345
345
struct gfxinfo * result = NULL ;
346
346
347
- switch (ZEND_NUM_ARGS ()){
347
+ switch (ZEND_NUM_ARGS ()) {
348
+
348
349
case 1 :
349
350
if (zend_get_parameters_ex (1 , & arg1 ) == FAILURE ) {
350
351
WRONG_PARAM_COUNT ;
@@ -357,9 +358,9 @@ PHP_FUNCTION(getimagesize)
357
358
WRONG_PARAM_COUNT ;
358
359
}
359
360
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
+ }
363
364
364
365
zval_dtor (* info );
365
366
0 commit comments