summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>1999-12-20 15:23:38 +0000
committerAndrei Zmievski <andrei@php.net>1999-12-20 15:23:38 +0000
commit2603f1c4197977ce290f058480f103862b61b562 (patch)
tree13f8a4a271bcaddf2e98c151da83b2790aaa5f88
parent5eba3fbd34368517bcbab07f985879be75cdd803 (diff)
downloadphp-git-2603f1c4197977ce290f058480f103862b61b562.tar.gz
Zend fixups.
-rw-r--r--ext/gd/gd.c74
-rw-r--r--ext/posix/posix.c26
2 files changed, 50 insertions, 50 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index 464e133288..13f8be64eb 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -300,7 +300,7 @@ PHP_FUNCTION(imageloadfont) {
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &file) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -379,7 +379,7 @@ PHP_FUNCTION(imagecreate)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &x_size, &y_size) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &x_size, &y_size) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -406,7 +406,7 @@ PHP_FUNCTION(imagecreatefrompng)
FILE *fp;
int issock=0, socketd=0;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &file) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string(file);
@@ -443,7 +443,7 @@ PHP_FUNCTION(imagepng)
int output=1;
GD_TLS_VARS;
argc = ARG_COUNT(ht);
- if (argc < 1 || argc > 2 || getParameters(ht, argc, &imgind, &file) == FAILURE) {
+ if (argc < 1 || argc > 2 || zend_get_parameters(ht, argc, &imgind, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(imgind);
@@ -514,7 +514,7 @@ PHP_FUNCTION(imagecreatefromgif )
int issock=0, socketd=0;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &file) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -559,7 +559,7 @@ PHP_FUNCTION(imagegif )
GD_TLS_VARS;
argc = ARG_COUNT(ht);
- if (argc < 1 || argc > 2 || getParameters(ht, argc, &imgind, &file) == FAILURE) {
+ if (argc < 1 || argc > 2 || zend_get_parameters(ht, argc, &imgind, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -634,7 +634,7 @@ PHP_FUNCTION(imagedestroy)
{
pval *imgind;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &imgind) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &imgind) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -657,7 +657,7 @@ PHP_FUNCTION(imagecolorallocate)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 4 || getParameters(ht, 4, &imgind, &red,
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters(ht, 4, &imgind, &red,
&green, &blue) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -692,7 +692,7 @@ PHP_FUNCTION(imagecolorat)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 3 || getParameters(ht, 3, &imgind, &x, &y) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters(ht, 3, &imgind, &x, &y) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -731,7 +731,7 @@ PHP_FUNCTION(imagecolorclosest)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 4 || getParameters(ht, 4, &imgind, &red,
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters(ht, 4, &imgind, &red,
&green, &blue) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -765,7 +765,7 @@ PHP_FUNCTION(imagecolordeallocate)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &imgind, &index) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &imgind, &index) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -802,7 +802,7 @@ PHP_FUNCTION(imagecolorresolve)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 4 || getParameters(ht, 4, &imgind, &red,
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters(ht, 4, &imgind, &red,
&green, &blue) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -838,7 +838,7 @@ PHP_FUNCTION(imagecolorexact)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 4 || getParameters(ht, 4, &imgind, &red,
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters(ht, 4, &imgind, &red,
&green, &blue) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -874,7 +874,7 @@ PHP_FUNCTION(imagecolorset)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 5 || getParameters(ht, 5, &imgind, &color, &red, &green, &blue) == FAILURE) {
+ if (ARG_COUNT(ht) != 5 || zend_get_parameters(ht, 5, &imgind, &color, &red, &green, &blue) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -915,7 +915,7 @@ PHP_FUNCTION(imagecolorsforindex)
gdImagePtr im;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &imgind, &index) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &imgind, &index) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -956,7 +956,7 @@ PHP_FUNCTION(imagesetpixel)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 4 ||
- getParameters(ht, 4, &imarg, &xarg, &yarg, &colarg) == FAILURE)
+ zend_get_parameters(ht, 4, &imarg, &xarg, &yarg, &colarg) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -994,7 +994,7 @@ PHP_FUNCTION(imageline)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 6 ||
- getParameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
+ zend_get_parameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1033,7 +1033,7 @@ PHP_FUNCTION(imagedashedline)
int ind_type;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 6 || getParameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
+ if (ARG_COUNT(ht) != 6 || zend_get_parameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1074,7 +1074,7 @@ PHP_FUNCTION(imagerectangle)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 6 ||
- getParameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
+ zend_get_parameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1115,7 +1115,7 @@ PHP_FUNCTION(imagefilledrectangle)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 6 ||
- getParameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
+ zend_get_parameters(ht, 6, &IM, &X1, &Y1, &X2, &Y2, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1155,7 +1155,7 @@ PHP_FUNCTION(imagearc)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 8 ||
- getParameters(ht, 8, &IM, &CX, &CY, &W, &H, &ST, &E, &COL) == FAILURE)
+ zend_get_parameters(ht, 8, &IM, &CX, &CY, &W, &H, &ST, &E, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1207,7 +1207,7 @@ PHP_FUNCTION(imagefilltoborder)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 5 ||
- getParameters(ht, 5, &IM, &X, &Y, &BORDER, &COL) == FAILURE)
+ zend_get_parameters(ht, 5, &IM, &X, &Y, &BORDER, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1246,7 +1246,7 @@ PHP_FUNCTION(imagefill)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 4 ||
- getParameters(ht, 4, &IM, &X, &Y, &COL) == FAILURE)
+ zend_get_parameters(ht, 4, &IM, &X, &Y, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1280,7 +1280,7 @@ PHP_FUNCTION(imagecolorstotal)
int ind_type;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &IM) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &IM) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(IM);
@@ -1308,12 +1308,12 @@ PHP_FUNCTION(imagecolortransparent)
switch(ARG_COUNT(ht)) {
case 1:
- if (getParameters(ht, 1, &IM) == FAILURE) {
+ if (zend_get_parameters(ht, 1, &IM) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 2:
- if (getParameters(ht, 2, &IM, &COL) == FAILURE) {
+ if (zend_get_parameters(ht, 2, &IM, &COL) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(COL);
@@ -1351,12 +1351,12 @@ PHP_FUNCTION(imageinterlace)
switch(ARG_COUNT(ht)) {
case 1:
- if (getParameters(ht, 1, &IM) == FAILURE) {
+ if (zend_get_parameters(ht, 1, &IM) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 2:
- if (getParameters(ht, 2, &IM, &INT) == FAILURE) {
+ if (zend_get_parameters(ht, 2, &IM, &INT) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(INT);
@@ -1393,7 +1393,7 @@ static void php_imagepolygon(INTERNAL_FUNCTION_PARAMETERS, int filled) {
GD_TLS_VARS;
if (ARG_COUNT(ht) != 4 ||
- getParameters(ht, 4, &IM, &POINTS, &NPOINTS, &COL) == FAILURE)
+ zend_get_parameters(ht, 4, &IM, &POINTS, &NPOINTS, &COL) == FAILURE)
{
WRONG_PARAM_COUNT;
}
@@ -1532,7 +1532,7 @@ static void php_imagefontsize(INTERNAL_FUNCTION_PARAMETERS, int arg)
pval *SIZE;
gdFontPtr font;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &SIZE) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &SIZE) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(SIZE);
@@ -1597,7 +1597,7 @@ static void php_imagechar(INTERNAL_FUNCTION_PARAMETERS, int mode) {
GD_TLS_VARS;
if (ARG_COUNT(ht) != 6 ||
- getParameters(ht, 6, &IM, &SIZE, &X, &Y, &C, &COL) == FAILURE) {
+ zend_get_parameters(ht, 6, &IM, &SIZE, &X, &Y, &C, &COL) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -1701,7 +1701,7 @@ PHP_FUNCTION(imagecopy)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 8 ||
- getParameters(ht, 8, &DIM, &SIM, &DX, &DY, &SX, &SY, &SW, &SH)
+ zend_get_parameters(ht, 8, &DIM, &SIM, &DX, &DY, &SX, &SY, &SW, &SH)
== FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -1751,7 +1751,7 @@ PHP_FUNCTION(imagecopyresized)
GD_TLS_VARS;
if (ARG_COUNT(ht) != 10 ||
- getParameters(ht, 10, &DIM, &SIM, &DX, &DY, &SX, &SY, &DW, &DH,
+ zend_get_parameters(ht, 10, &DIM, &SIM, &DX, &DY, &SX, &SY, &DW, &DH,
&SW, &SH) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -1803,7 +1803,7 @@ PHP_FUNCTION(imagesx)
int ind_type;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &IM) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &IM) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -1826,7 +1826,7 @@ PHP_FUNCTION(imagesy)
int ind_type;
GD_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &IM) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &IM) == FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -1876,11 +1876,11 @@ void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode)
GD_TLS_VARS;
if (mode == TTFTEXT_BBOX) {
- if (ARG_COUNT(ht) != 4 || getParameters(ht, 4, &PTSIZE, &ANGLE, &FONTNAME, &C) == FAILURE) {
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters(ht, 4, &PTSIZE, &ANGLE, &FONTNAME, &C) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else {
- if (ARG_COUNT(ht) != 8 || getParameters(ht, 8, &IM, &PTSIZE, &ANGLE, &X, &Y, &COL, &FONTNAME, &C) == FAILURE) {
+ if (ARG_COUNT(ht) != 8 || zend_get_parameters(ht, 8, &IM, &PTSIZE, &ANGLE, &X, &Y, &COL, &FONTNAME, &C) == FAILURE) {
WRONG_PARAM_COUNT;
}
}
diff --git a/ext/posix/posix.c b/ext/posix/posix.c
index cc8efdd154..37d6fa39c6 100644
--- a/ext/posix/posix.c
+++ b/ext/posix/posix.c
@@ -150,7 +150,7 @@ PHP_FUNCTION(posix_kill)
pval *sig;
int result;
- if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &pid, &sig)==FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &pid, &sig)==FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -243,7 +243,7 @@ PHP_FUNCTION(posix_setuid)
pval *uid;
int result;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &uid)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &uid)==FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -268,7 +268,7 @@ PHP_FUNCTION(posix_setgid)
pval *gid;
int result;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &gid)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &gid)==FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -361,7 +361,7 @@ PHP_FUNCTION(posix_setpgid)
pval *pgid;
int result;
- if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &pid, &pgid)==FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &pid, &pgid)==FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -389,7 +389,7 @@ PHP_FUNCTION(posix_getpgid)
pid_t pgid;
pval *pid;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &pid)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &pid)==FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -418,7 +418,7 @@ PHP_FUNCTION(posix_getsid)
pid_t sid;
pval *pid;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &pid)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &pid)==FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -519,7 +519,7 @@ PHP_FUNCTION(posix_ttyname)
pval *fd;
char *p;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &fd)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &fd)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(fd);
@@ -543,7 +543,7 @@ PHP_FUNCTION(posix_isatty)
pval *fd;
int result;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &fd)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &fd)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(fd);
@@ -598,7 +598,7 @@ PHP_FUNCTION(posix_mkfifo)
pval *mode;
int result;
- if (ARG_COUNT(ht) != 2 || getParameters(ht, 2, &path, &mode) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters(ht, 2, &path, &mode) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string(path);
@@ -645,7 +645,7 @@ PHP_FUNCTION(posix_getgrnam)
char **p;
int count;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &name)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &name)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string(name);
@@ -681,7 +681,7 @@ PHP_FUNCTION(posix_getgrgid)
char **p;
int count;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &gid)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &gid)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(gid);
@@ -713,7 +713,7 @@ PHP_FUNCTION(posix_getpwnam)
pval *name;
struct passwd *pw;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &name)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &name)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string(name);
@@ -745,7 +745,7 @@ PHP_FUNCTION(posix_getpwuid)
pval *uid;
struct passwd *pw;
- if (ARG_COUNT(ht) != 1 || getParameters(ht, 1, &uid)==FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters(ht, 1, &uid)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long(uid);