summaryrefslogtreecommitdiff
path: root/ext/standard/image.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-04-20 15:37:55 +0000
committerfoobar <sniper@php.net>2001-04-20 15:37:55 +0000
commitd9b2f7910e76db7ea78008be77cf11d38a76e9c7 (patch)
treef266c09e9c6008561db31c427e52490f3559466c /ext/standard/image.c
parentc78e847153715269ac79243374641aca0951647a (diff)
downloadphp-git-d9b2f7910e76db7ea78008be77cf11d38a76e9c7.tar.gz
ws pollution removed.
Diffstat (limited to 'ext/standard/image.c')
-rw-r--r--ext/standard/image.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 873161a6f5..2bb7cb200a 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -235,7 +235,7 @@ static void php_read_APP(int socketd, FILE *fp, int issock,unsigned int marker,p
length = php_read2(socketd,fp,issock);
length -= 2; /* length includes itself */
- buffer = emalloc(length);
+ buffer = emalloc(length);
if (FP_FREAD(buffer, (long) length, socketd, fp, issock) <= 0) {
efree(buffer);
@@ -281,7 +281,7 @@ static struct gfxinfo *php_handle_jpeg (int socketd, FILE *fp, int issock, pval
result = (struct gfxinfo *) ecalloc(1,sizeof(struct gfxinfo));
FP_FREAD(tmp, sizeof(tmp), socketd, fp, issock);
result->bits = FP_FGETC(socketd,fp,issock);
- FP_FREAD(a, sizeof(a), socketd, fp, issock);
+ FP_FREAD(a, sizeof(a), socketd, fp, issock);
result->height = (((unsigned short) a[ 0 ]) << 8) + ((unsigned short) a[ 1 ]);
result->width = (((unsigned short) a[ 2 ]) << 8) + ((unsigned short) a[ 3 ]);
result->channels = FP_FGETC(socketd,fp,issock);
@@ -312,7 +312,7 @@ static struct gfxinfo *php_handle_jpeg (int socketd, FILE *fp, int issock, pval
if (info) {
php_read_APP(socketd,fp,issock,marker,info); /* read all the app markes... */
} else {
- php_skip_variable(socketd,fp,issock);
+ php_skip_variable(socketd,fp,issock);
}
break;
@@ -344,7 +344,8 @@ PHP_FUNCTION(getimagesize)
char temp[64];
struct gfxinfo *result = NULL;
- switch(ZEND_NUM_ARGS()){
+ switch(ZEND_NUM_ARGS()) {
+
case 1:
if (zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
@@ -357,9 +358,9 @@ PHP_FUNCTION(getimagesize)
WRONG_PARAM_COUNT;
}
if (!ParameterPassedByReference(ht, 2)) {
- php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
- RETURN_FALSE;
- }
+ php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
+ RETURN_FALSE;
+ }
zval_dtor(*info);