#include "zend_hash.h"
#include "zend_llist.h"
-#define INTERNAL_FUNCTION_PARAMETERS int num_args, zval *return_value, HashTable *list, HashTable *plist, zval *this_ptr, int return_value_used
-#define INTERNAL_FUNCTION_PARAM_PASSTHRU num_args, return_value, list, plist, this_ptr, return_value_used
+#define INTERNAL_FUNCTION_PARAMETERS int ht, zval *return_value, HashTable *list, HashTable *plist, zval *this_ptr, int return_value_used
+#define INTERNAL_FUNCTION_PARAM_PASSTHRU ht, return_value, list, plist, this_ptr, return_value_used
/*
* zval
#define WRONG_PARAM_COUNT { wrong_param_count(); return; }
#define WRONG_PARAM_COUNT_WITH_RETVAL(ret) { wrong_param_count(); return ret; }
-#define ARG_COUNT(dummy) (num_args)
-#define ZEND_NUM_ARGS() (num_args)
+#define ARG_COUNT(dummy) (ht)
+#define ZEND_NUM_ARGS() (ht)
#define BYREF_NONE 0
#define BYREF_FORCE 1
SLS_FETCH();
if (arg_count<1 || arg_count>2 ||
- getParametersEx(arg_count,&arg_name,&arg_val) ==FAILURE ) {
+ zend_get_parameters_ex(arg_count,&arg_name,&arg_val) ==FAILURE ) {
WRONG_PARAM_COUNT;
}
request_rec *rr = NULL;
SLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1,&filename) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1,&filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
request_rec *rr=NULL;
SLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1,&filename) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1,&filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
request_rec *rr=NULL;
SLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1,&filename) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1,&filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
int ind;
argc = ARG_COUNT(ht);
- if (argc < 1 || argc > 2 || getParametersEx(argc,&master,&personal) == FAILURE) {
+ if (argc < 1 || argc > 2 || zend_get_parameters_ex(argc,&master,&personal) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(master);
argc = ARG_COUNT(ht);
- if (argc != 2 || getParametersEx(argc, &scin,&word) == FAILURE) {
+ if (argc != 2 || zend_get_parameters_ex(argc, &scin,&word) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(scin);
int argc;
argc = ARG_COUNT(ht);
- if (argc != 2 || getParametersEx(argc, &scin,&word) == FAILURE) {
+ if (argc != 2 || zend_get_parameters_ex(argc, &scin,&word) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(scin);
aspell *sc;
argc = ARG_COUNT(ht);
- if (argc != 2 || getParametersEx(argc, &scin,&word) == FAILURE) {
+ if (argc != 2 || zend_get_parameters_ex(argc, &scin,&word) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(scin);
unsigned int outAlloc, outLth;
long errcode;
- if(ARG_COUNT(ht) != 3 || getParametersEx(3,&wmk,&sk,&inbuff) == FAILURE) {
+ if(ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3,&wmk,&sk,&inbuff) == FAILURE) {
WRONG_PARAM_COUNT;
}
long errcode;
- if(ARG_COUNT(ht) != 3 || getParametersEx(3,&wmk,&sk,&inbuff) == FAILURE)
+ if(ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3,&wmk,&sk,&inbuff) == FAILURE)
{
WRONG_PARAM_COUNT;
}
long ret_length;
if(ARG_COUNT(ht) != 1 ||
- getParametersEx(1,&inbuff) == FAILURE)
+ zend_get_parameters_ex(1,&inbuff) == FAILURE)
{
WRONG_PARAM_COUNT;
}
long ret_length;
if(ARG_COUNT(ht) != 1 ||
- getParametersEx(1,&inbuff) == FAILURE)
+ zend_get_parameters_ex(1,&inbuff) == FAILURE)
{
WRONG_PARAM_COUNT;
}
/* these are used to get the standard arguments */
#define DBA_GET1 \
- if(ac != 1 || getParametersEx(ac, &id) != SUCCESS) { \
+ if(ac != 1 || zend_get_parameters_ex(ac, &id) != SUCCESS) { \
WRONG_PARAM_COUNT; \
}
#define DBA_GET2 \
pval **key; \
- if(ac != 2 || getParametersEx(ac, &key, &id) != SUCCESS) { \
+ if(ac != 2 || zend_get_parameters_ex(ac, &key, &id) != SUCCESS) { \
WRONG_PARAM_COUNT; \
} \
convert_to_string_ex(key)
DBA_ID_PARS;
pval **val, **key;
- if(ac != 3 || getParametersEx(ac, &key, &val, &id) != SUCCESS) {
+ if(ac != 3 || zend_get_parameters_ex(ac, &key, &val, &id) != SUCCESS) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(key);
/* we pass additional args to the respective handler */
args = emalloc(ac * sizeof(pval *));
- if(getParametersArrayEx(ac, args) != SUCCESS) {
+ if(zend_get_parameters_array_ex(ac, args) != SUCCESS) {
FREENOW;
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, ®ex, &findin) == FAILURE) {
+ if (zend_get_parameters_ex(2, ®ex, &findin) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* don't bother doing substring matching if we're not going
copts |= REG_NOSUB;
break;
case 3:
- if (getParametersEx(3, ®ex, &findin, &array) == FAILURE) {
+ if (zend_get_parameters_ex(3, ®ex, &findin, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
if (!ParameterPassedByReference(ht, 3)) {
char *replace;
char *ret;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg_pattern, &arg_replace, &arg_string) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg_pattern, &arg_replace, &arg_string) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch (ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &spliton, &str) == FAILURE)
+ if (zend_get_parameters_ex(2, &spliton, &str) == FAILURE)
WRONG_PARAM_COUNT;
count = -1;
break;
case 3:
- if (getParametersEx(3, &spliton, &str, &arg_count) == FAILURE)
+ if (zend_get_parameters_ex(3, &spliton, &str, &arg_count) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(arg_count);
count = (*arg_count)->value.lval;
unsigned char c;
register int i, j;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &string)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &string)==FAILURE) {
WRONG_PARAM_COUNT;
}
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &file) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFDoc fdf;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFErc err;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFErc err;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 4 || getParametersEx(4, &arg1, &arg2,&arg3, &arg4) == FAILURE) {
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters_ex(4, &arg1, &arg2,&arg3, &arg4) == FAILURE) {
WRONG_PARAM_COUNT;
}
if((argc > 2) || (argc < 1))
WRONG_PARAM_COUNT;
- if (getParametersArrayEx(argc, argv) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, argv) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFAppFace face;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 5 || getParametersEx(5, &arg1, &arg2,&arg3, &arg4, &arg5) == FAILURE) {
+ if (ARG_COUNT(ht) != 5 || zend_get_parameters_ex(5, &arg1, &arg2,&arg3, &arg4, &arg5) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFErc err;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFErc err;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFErc err;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFErc err;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
FDFErc err;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
pdfFileSpecRec filespec;
FDF_TLS_VARS;
- if (ARG_COUNT(ht) != 5 || getParametersEx(5, &arg1, &arg2,&arg3, &arg4, &arg5) == FAILURE) {
+ if (ARG_COUNT(ht) != 5 || zend_get_parameters_ex(5, &arg1, &arg2,&arg3, &arg4, &arg5) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *domain_name, *retval;
char *val;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &domain) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &domain) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(domain);
pval **msgid;
char *msgstr;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &msgid) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &msgid) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(msgid);
char *msgstr;
if (ARG_COUNT(ht) != 2
- || getParametersEx(2, &domain_name, &msgid) == FAILURE)
+ || zend_get_parameters_ex(2, &domain_name, &msgid) == FAILURE)
{
WRONG_PARAM_COUNT;
}
char *msgstr;
if (ARG_COUNT(ht) != 3
- || getParametersEx(3, &domain_name, &msgid, &category) == FAILURE)
+ || zend_get_parameters_ex(3, &domain_name, &msgid, &category) == FAILURE)
{
WRONG_PARAM_COUNT;
}
char *val;
if (ARG_COUNT(ht) != 2
- || getParametersEx(2, &domain_name, &dir) == FAILURE)
+ || zend_get_parameters_ex(2, &domain_name, &dir) == FAILURE)
{
WRONG_PARAM_COUNT;
}
int id, type;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
hw_connection *ptr;
char *str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int id, type;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
hw_connection *ptr;
char errstr[100];
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int link, type;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
return NULL;
}
convert_to_long_ex(arg1);
int link, id, type, msgid;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg1, &arg2, &arg3) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg1, &arg2, &arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
argc = ARG_COUNT(ht);
if(argc < 2 || argc > 3)
WRONG_PARAM_COUNT;
- if (getParametersArrayEx(argc, argv) == FAILURE)
+ if (zend_get_parameters_array_ex(argc, argv) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(argv[0]);
int count;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
char **childObjRecs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int count;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
char **childObjRecs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int link, id, type;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int *childIDs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg1, &arg2, &arg3) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg1, &arg2, &arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
char **childObjRecs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg1, &arg2, &arg3) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg1, &arg2, &arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
hw_connection *ptr;
int *childIDs = NULL;
- if (ARG_COUNT(ht) != 4 || getParametersEx(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters_ex(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
hw_connection *ptr;
char **childObjRecs = NULL;
- if (ARG_COUNT(ht) != 4 || getParametersEx(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters_ex(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int *childIDs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
char **childObjRecs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int *anchorIDs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
char **anchorObjRecs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int link, type;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
char *name, *passwd, *userdata;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg1, &arg2, &arg3) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg1, &arg2, &arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
switch(ARG_COUNT(ht)) {
case 1:
- if(getParametersEx(1, &arg1) == FAILURE)
+ if(zend_get_parameters_ex(1, &arg1) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_string_ex(arg1);
make2_return_array_from_objrec(&return_value, (*arg1)->value.str.val, NULL);
break;
case 2:
- if(getParametersEx(2, &arg1, &arg2) == FAILURE)
+ if(zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_array_ex(arg2);
convert_to_string_ex(arg1);
pval **arg1;
char *objrec, *retobj;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_array_ex(arg1);
hw_connection *ptr;
int cobjids, ccollids, *objectIDs, *collIDs, cretids, *retIDs, retcoll;
- if (ARG_COUNT(ht) != 4 || getParametersEx(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters_ex(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int id, newid, type, link;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg1, &arg2, &arg3) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg1, &arg2, &arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
if((argc < 3) || (argc > 4))
WRONG_PARAM_COUNT;
- if (getParametersArrayEx(argc, argv) == FAILURE)
+ if (zend_get_parameters_array_ex(argc, argv) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(argv[0]);
char **childObjRecs = NULL;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int link, type, servid, id, virtid;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg1, &arg2, &arg3) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg1, &arg2, &arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
char *anchorstr;
hw_connection *ptr;
- if (ARG_COUNT(ht) != 4 || getParametersEx(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
+ if (ARG_COUNT(ht) != 4 || zend_get_parameters_ex(4, &arg1, &arg2, &arg3, &arg4) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
hw_connection *ptr;
int link, type;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
case 1: {
pval **yyhost;
- if (getParametersEx(1, &yyhost) == FAILURE) {
+ if (zend_get_parameters_ex(1, &yyhost) == FAILURE) {
RETURN_FALSE;
}
case 2: {
pval **yyhost, **yyport;
- if (getParametersEx(2, &yyhost,&yyport) == FAILURE) {
+ if (zend_get_parameters_ex(2, &yyhost,&yyport) == FAILURE) {
RETURN_FALSE;
}
{
pval **berp;
- if ( getParametersEx(1,&berp) == FAILURE ) {
+ if ( zend_get_parameters_ex(1,&berp) == FAILURE ) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 1: /* Anonymous Bind */
- if (getParametersEx(1, &link) == FAILURE) {
+ if (zend_get_parameters_ex(1, &link) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 3 :
- if (getParametersEx(3, &link, &bind_rdn,&bind_pw) == FAILURE) {
+ if (zend_get_parameters_ex(3, &link, &bind_rdn,&bind_pw) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **link;
LDAP *ldap;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &link) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &link) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 3 :
- if (getParametersEx(3, &link, &base_dn,&filter) == FAILURE) {
+ if (zend_get_parameters_ex(3, &link, &base_dn,&filter) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 4 :
- if (getParametersEx(4, &link, &base_dn,&filter, &attrs) == FAILURE) {
+ if (zend_get_parameters_ex(4, &link, &base_dn,&filter, &attrs) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **result;
LDAPMessage *ldap_result;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &result) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &result) == FAILURE) {
WRONG_PARAM_COUNT;
}
LDAP *ldap;
LDAPMessage *ldap_result;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &link, &result) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &link, &result) == FAILURE) {
WRONG_PARAM_COUNT;
}
LDAPMessage *ldap_result_entry;
LDAP_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &link, &result) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &link, &result) == FAILURE) {
WRONG_PARAM_COUNT;
}
LDAPMessage *ldap_result_entry, *ldap_result_entry_next;
LDAP_TLS_VARS;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &link,&result_entry) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &link,&result_entry) == FAILURE) {
WRONG_PARAM_COUNT;
}
char **ldap_value;
char *dn;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &link, &result) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &link, &result) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *attribute;
LDAP_TLS_VARS;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &link,&result,&berp) == FAILURE || ParameterPassedByReference(ht,3)==0 ) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &link,&result,&berp) == FAILURE || ParameterPassedByReference(ht,3)==0 ) {
WRONG_PARAM_COUNT;
}
BerElement *ber;
char *attribute;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &link,&result,&berp) == FAILURE ) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &link,&result,&berp) == FAILURE ) {
WRONG_PARAM_COUNT;
}
int i, count, num_values, num_attrib;
BerElement *ber;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &link, &result_entry) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &link, &result_entry) == FAILURE) {
WRONG_PARAM_COUNT;
}
char **ldap_value;
int i, num_values;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &link,&result_entry, &attr) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &link,&result_entry, &attr) == FAILURE) {
WRONG_PARAM_COUNT;
}
LDAPMessage *entry;
char *text;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &link, &entryp) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &link, &entryp) == FAILURE) {
WRONG_PARAM_COUNT;
}
char **ldap_value;
int i, count;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &dn,&with_attrib) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &dn,&with_attrib) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **dn;
char *ufn;
- if (ARG_COUNT(ht) !=1 || getParametersEx(1,&dn)==FAILURE) {
+ if (ARG_COUNT(ht) !=1 || zend_get_parameters_ex(1,&dn)==FAILURE) {
WRONG_PARAM_COUNT;
}
ulong index;
int is_full_add=0; /* flag for full add operation so ldap_mod_add can be put back into oper, gerrit THomson */
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &link, &dn,&entry) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &link, &dn,&entry) == FAILURE) {
WRONG_PARAM_COUNT;
}
LDAP *ldap;
char *ldap_dn;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &link, &dn) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &link, &dn) == FAILURE) {
WRONG_PARAM_COUNT;
}
int i;
int n = 0;
- if(ARG_COUNT(ht) != 2 || getParametersEx(2, &size, &psource) == FAILURE) {
+ if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &size, &psource) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **cipher;
char *str, *nstr;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &cipher) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **cipher;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &cipher) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **cipher;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &cipher) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &cipher) == FAILURE) {
WRONG_PARAM_COUNT;
}
MCRYPT_ARGS;
if(ARG_COUNT(ht) != 5 ||
- getParametersEx(5, &cipher, &key, &data, &mode, &iv) == FAILURE) {
+ zend_get_parameters_ex(5, &cipher, &key, &data, &mode, &iv) == FAILURE) {
WRONG_PARAM_COUNT;
}
MCRYPT_CONVERT;
MCRYPT_ARGS;
if(ARG_COUNT(ht) != 5 ||
- getParametersEx(5, &cipher, &key, &data, &mode, &iv) == FAILURE) {
+ zend_get_parameters_ex(5, &cipher, &key, &data, &mode, &iv) == FAILURE) {
WRONG_PARAM_COUNT;
}
MCRYPT_CONVERT;
int ac = ARG_COUNT(ht);
if(ac < 4 || ac > 5 ||
- getParametersEx(ac, &cipher, &key, &data, &mode, &iv) == FAILURE) {
+ zend_get_parameters_ex(ac, &cipher, &key, &data, &mode, &iv) == FAILURE) {
WRONG_PARAM_COUNT;
}
MCRYPT_CONVERT;
MCRYPT_ARGS2;
if(ARG_COUNT(ht) != 4 ||
- getParametersEx(4, &cipher, &key, &data, &mode) == FAILURE) {
+ zend_get_parameters_ex(4, &cipher, &key, &data, &mode) == FAILURE) {
WRONG_PARAM_COUNT;
}
MCRYPT_CONVERT;
{
pval **hash;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &hash) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &hash) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **hash;
char *name;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &hash) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &hash) == FAILURE) {
WRONG_PARAM_COUNT;
}
int bsize;
unsigned char *hash_data;
- if(ARG_COUNT(ht) != 2 || getParametersEx(2, &hash, &data) == FAILURE) {
+ if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &hash, &data) == FAILURE) {
WRONG_PARAM_COUNT;
}
case 1: {
pval **yyhost;
- if (getParametersEx(1, &yyhost)==FAILURE) {
+ if (zend_get_parameters_ex(1, &yyhost)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(yyhost);
case 2: {
pval **yyhost,**yyuser;
- if (getParametersEx(2, &yyhost, &yyuser)==FAILURE) {
+ if (zend_get_parameters_ex(2, &yyhost, &yyuser)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(yyhost);
case 3: {
pval **yyhost,**yyuser,**yypasswd;
- if (getParametersEx(3, &yyhost, &yyuser, &yypasswd) == FAILURE) {
+ if (zend_get_parameters_ex(3, &yyhost, &yyuser, &yypasswd) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(yyhost);
id = MS_SQL_G(default_link);
break;
case 1:
- if (getParametersEx(1, &mssql_link_index)==FAILURE) {
+ if (zend_get_parameters_ex(1, &mssql_link_index)==FAILURE) {
RETURN_FALSE;
}
ZEND_FETCH_RESOURCE2(mssql_ptr, mssql_link *, mssql_link_index, -1, "MS SQL-Link", MS_SQL_G(le_link), MS_SQL_G(le_plink));
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &db)==FAILURE) {
+ if (zend_get_parameters_ex(1, &db)==FAILURE) {
RETURN_FALSE;
}
id = php_mssql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU);
break;
case 2:
- if (getParametersEx(2, &db, &mssql_link_index)==FAILURE) {
+ if (zend_get_parameters_ex(2, &db, &mssql_link_index)==FAILURE) {
RETURN_FALSE;
}
ZEND_FETCH_RESOURCE2(mssql_ptr, mssql_link *, mssql_link_index, -1, "MS SQL-Link", MS_SQL_G(le_link), MS_SQL_G(le_plink));
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &query)==FAILURE) {
+ if (zend_get_parameters_ex(1, &query)==FAILURE) {
RETURN_FALSE;
}
// id = MS_SQL_G(default_link);
break;
case 2:
- if (getParametersEx(2, &query, &mssql_link_index)==FAILURE) {
+ if (zend_get_parameters_ex(2, &query, &mssql_link_index)==FAILURE) {
RETURN_FALSE;
}
ZEND_FETCH_RESOURCE2(mssql_ptr, mssql_link *, mssql_link_index, -1, "MS SQL-Link", MS_SQL_G(le_link), MS_SQL_G(le_plink));
MSSQLLS_FETCH();
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &mssql_result_index)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &mssql_result_index)==FAILURE) {
WRONG_PARAM_COUNT;
}
MSSQLLS_FETCH();
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &mssql_result_index)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &mssql_result_index)==FAILURE) {
WRONG_PARAM_COUNT;
}
MSSQLLS_FETCH();
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &mssql_result_index)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &mssql_result_index)==FAILURE) {
WRONG_PARAM_COUNT;
}
pval *field_content;
MSSQLLS_FETCH();
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &mssql_result_index)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &mssql_result_index)==FAILURE) {
WRONG_PARAM_COUNT;
}
PLS_FETCH();
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &mssql_result_index)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &mssql_result_index)==FAILURE) {
WRONG_PARAM_COUNT;
}
case 1: {
pval **yyhost;
- if (getParametersEx(1, &yyhost)==FAILURE) {
+ if (zend_get_parameters_ex(1, &yyhost)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(yyhost);
case 2: {
pval **yyhost, **yyuser;
- if (getParametersEx(2, &yyhost, &yyuser)==FAILURE) {
+ if (zend_get_parameters_ex(2, &yyhost, &yyuser)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(yyhost);
case 3: {
pval **yyhost,**yyuser,**yypasswd;
- if (getParametersEx(3, &yyhost, &yyuser, &yypasswd) == FAILURE) {
+ if (zend_get_parameters_ex(3, &yyhost, &yyuser, &yypasswd) == FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(yyhost);
id = MySG(default_link);
break;
case 1:
- if (getParametersEx(1, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(1, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &db)==FAILURE) {
+ if (zend_get_parameters_ex(1, &db)==FAILURE) {
RETURN_FALSE;
}
id = php_mysql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU MySLS_CC);
CHECK_LINK(id);
break;
case 2:
- if (getParametersEx(2, &db, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(2, &db, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &db)==FAILURE) {
+ if (zend_get_parameters_ex(1, &db)==FAILURE) {
RETURN_FALSE;
}
id = php_mysql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU MySLS_CC);
CHECK_LINK(id);
break;
case 2:
- if (getParametersEx(2, &db, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(2, &db, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &db)==FAILURE) {
+ if (zend_get_parameters_ex(1, &db)==FAILURE) {
RETURN_FALSE;
}
id = php_mysql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU MySLS_CC);
CHECK_LINK(id);
break;
case 2:
- if (getParametersEx(2, &db, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(2, &db, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &query)==FAILURE) {
+ if (zend_get_parameters_ex(1, &query)==FAILURE) {
RETURN_FALSE;
}
id = php_mysql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU MySLS_CC);
CHECK_LINK(id);
break;
case 2:
- if (getParametersEx(2, &query, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(2, &query, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &db, &query)==FAILURE) {
+ if (zend_get_parameters_ex(2, &db, &query)==FAILURE) {
RETURN_FALSE;
}
id = php_mysql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU MySLS_CC);
CHECK_LINK(id);
break;
case 3:
- if (getParametersEx(3, &db, &query, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(3, &db, &query, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
CHECK_LINK(id);
break;
case 1:
- if (getParametersEx(1, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(1, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &db)==FAILURE) {
+ if (zend_get_parameters_ex(1, &db)==FAILURE) {
RETURN_FALSE;
}
id = php_mysql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU MySLS_CC);
CHECK_LINK(id);
break;
case 2:
- if (getParametersEx(2, &db, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(2, &db, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &db, &table)==FAILURE) {
+ if (zend_get_parameters_ex(2, &db, &table)==FAILURE) {
RETURN_FALSE;
}
id = php_mysql_get_default_link(INTERNAL_FUNCTION_PARAM_PASSTHRU MySLS_CC);
CHECK_LINK(id);
break;
case 3:
- if (getParametersEx(3, &db, &table, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(3, &db, &table, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
}
break;
case 1:
- if (getParametersEx(1, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(1, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
}
break;
case 1:
- if (getParametersEx(1, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(1, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
CHECK_LINK(id);
break;
case 1:
- if (getParametersEx(1, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(1, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
CHECK_LINK(id);
break;
case 1:
- if (getParametersEx(1, &mysql_link)==FAILURE) {
+ if (zend_get_parameters_ex(1, &mysql_link)==FAILURE) {
RETURN_FALSE;
}
id = -1;
switch (ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &result, &row)==FAILURE) {
+ if (zend_get_parameters_ex(2, &result, &row)==FAILURE) {
RETURN_FALSE;
}
break;
case 3:
- if (getParametersEx(3, &result, &row, &field)==FAILURE) {
+ if (zend_get_parameters_ex(3, &result, &row, &field)==FAILURE) {
RETURN_FALSE;
}
break;
pval **result;
MYSQL_RES *mysql_result;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &result)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &result)==FAILURE) {
WRONG_PARAM_COUNT;
}
pval **result;
MYSQL_RES *mysql_result;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &result)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &result)==FAILURE) {
WRONG_PARAM_COUNT;
}
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &result)==FAILURE) {
+ if (zend_get_parameters_ex(1, &result)==FAILURE) {
RETURN_FALSE;
}
if (!result_type) {
}
break;
case 2:
- if (getParametersEx(2, &result, &arg2)==FAILURE) {
+ if (zend_get_parameters_ex(2, &result, &arg2)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(arg2);
pval **result, **offset;
MYSQL_RES *mysql_result;
- if (ARG_COUNT(ht)!=2 || getParametersEx(2, &result, &offset)==FAILURE) {
+ if (ARG_COUNT(ht)!=2 || zend_get_parameters_ex(2, &result, &offset)==FAILURE) {
WRONG_PARAM_COUNT;
}
int i;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &result)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &result)==FAILURE) {
WRONG_PARAM_COUNT;
}
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &result)==FAILURE) {
+ if (zend_get_parameters_ex(1, &result)==FAILURE) {
RETURN_FALSE;
}
break;
case 2:
- if (getParametersEx(2, &result, &field)==FAILURE) {
+ if (zend_get_parameters_ex(2, &result, &field)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(field);
pval **result, **offset;
MYSQL_RES *mysql_result;
- if (ARG_COUNT(ht)!=2 || getParametersEx(2, &result, &offset)==FAILURE) {
+ if (ARG_COUNT(ht)!=2 || zend_get_parameters_ex(2, &result, &offset)==FAILURE) {
WRONG_PARAM_COUNT;
}
char buf[512];
int len;
- if (ARG_COUNT(ht)!=2 || getParametersEx(2, &result, &field)==FAILURE) {
+ if (ARG_COUNT(ht)!=2 || zend_get_parameters_ex(2, &result, &field)==FAILURE) {
WRONG_PARAM_COUNT;
}
pval **result;
MYSQL_RES *mysql_result;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &result)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &result)==FAILURE) {
WRONG_PARAM_COUNT;
}
oci_connection *connection = 0;
OCILS_FETCH();
- if (getParametersEx(3, &userParam, &passParam, &dbParam) == SUCCESS) {
+ if (zend_get_parameters_ex(3, &userParam, &passParam, &dbParam) == SUCCESS) {
convert_to_string_ex(userParam);
convert_to_string_ex(passParam);
convert_to_string_ex(dbParam);
username = (*userParam)->value.str.val;
password = (*passParam)->value.str.val;
dbname = (*dbParam)->value.str.val;
- } else if (getParametersEx(2, &userParam, &passParam) == SUCCESS) {
+ } else if (zend_get_parameters_ex(2, &userParam, &passParam) == SUCCESS) {
convert_to_string_ex(userParam);
convert_to_string_ex(passParam);
ub2 ocitype = SQLT_STR; /* zero terminated string */
int ac = ARG_COUNT(ht);
- if (ac < 3 || ac > 4 || getParametersEx(ac, &stmt, &name, &var, &type) == FAILURE) {
+ if (ac < 3 || ac > 4 || zend_get_parameters_ex(ac, &stmt, &name, &var, &type) == FAILURE) {
WRONG_PARAM_COUNT;
}
dvoid *mydescr = 0;
int ac = ARG_COUNT(ht);
- if (ac < 4 || ac > 5 || getParametersEx(ac, &stmt, &name, &var, &maxlen, &type) == FAILURE) {
+ if (ac < 4 || ac > 5 || zend_get_parameters_ex(ac, &stmt, &name, &var, &maxlen, &type) == FAILURE) {
WRONG_PARAM_COUNT;
}
}
offset = 0;
- if (getParametersEx(2, &arg, &oarg) == SUCCESS) {
+ if (zend_get_parameters_ex(2, &arg, &oarg) == SUCCESS) {
convert_to_long_ex(oarg);
offparam = (*oarg)->value.lval;
} else {
offset = offparam;
}
- } else if (getParametersEx(1, &arg) == FAILURE) {
+ } else if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
RETURN_FALSE;
}
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
RETURN_FALSE;
}
- if (ac < 0 || ac > 3 || getParametersEx(ac, &zfilename, &zstart, &zlength) == FAILURE) {
+ if (ac < 0 || ac > 3 || zend_get_parameters_ex(ac, &zfilename, &zstart, &zlength) == FAILURE) {
WRONG_PARAM_COUNT;
}
descr.type = OCI_DTYPE_LOB;
- if (getParametersEx(2, &conn, &type) == SUCCESS) {
+ if (zend_get_parameters_ex(2, &conn, &type) == SUCCESS) {
convert_to_long_ex(type);
descr.type = (*type)->value.lval;
- } else if (getParametersEx(1, &conn) == FAILURE) {
+ } else if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **conn;
oci_connection *connection;
- if (getParametersEx(1, &conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **conn;
oci_connection *connection;
- if (getParametersEx(1, &conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
oci_out_column *outcol;
- if (getParametersEx(2, &stmt, &col) == FAILURE) {
+ if (zend_get_parameters_ex(2, &stmt, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
oci_out_column *outcol;
- if (getParametersEx(2, &stmt, &col) == FAILURE) {
+ if (zend_get_parameters_ex(2, &stmt, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
oci_out_column *outcol;
- if (getParametersEx(2, &stmt, &col) == FAILURE) {
+ if (zend_get_parameters_ex(2, &stmt, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
oci_out_column *outcol;
- if (getParametersEx(2, &stmt, &col) == FAILURE) {
+ if (zend_get_parameters_ex(2, &stmt, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **arg;
OCILS_FETCH();
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg);
oci_statement *statement;
ub4 execmode;
- if (getParametersEx(2, &stmt, &mode) == SUCCESS) {
+ if (zend_get_parameters_ex(2, &stmt, &mode) == SUCCESS) {
convert_to_long_ex(mode);
execmode = (*mode)->value.lval;
- } else if (getParametersEx(1, &stmt) == SUCCESS) {
+ } else if (zend_get_parameters_ex(1, &stmt) == SUCCESS) {
execmode = OCI_COMMIT_ON_SUCCESS;
} else {
WRONG_PARAM_COUNT;
pval **stmt;
oci_statement *statement;
- if (getParametersEx(1, &stmt) == FAILURE) {
+ if (zend_get_parameters_ex(1, &stmt) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
ub4 nrows = 1; /* only one row at a time is supported for now */
- if (getParametersEx(1, &stmt) == FAILURE) {
+ if (zend_get_parameters_ex(1, &stmt) == FAILURE) {
WRONG_PARAM_COUNT;
}
int mode = OCI_NUM;
int ac = ARG_COUNT(ht);
- if (ac < 2 || ac > 3 || getParametersEx(ac, &stmt, &array, &fmode) == FAILURE) {
+ if (ac < 2 || ac > 3 || zend_get_parameters_ex(ac, &stmt, &array, &fmode) == FAILURE) {
WRONG_PARAM_COUNT;
}
char namebuf[ 128 ];
int ac = ARG_COUNT(ht);
- if (ac < 2 || ac > 3 || getParametersEx(ac, &stmt, &array, &fmode) == FAILURE) {
+ if (ac < 2 || ac > 3 || zend_get_parameters_ex(ac, &stmt, &array, &fmode) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **stmt;
oci_statement *statement;
- if (getParametersEx(1, &stmt) == FAILURE) {
+ if (zend_get_parameters_ex(1, &stmt) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_connection *connection;
pval **conn;
- if (getParametersEx(1, &conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
OCILS_FETCH();
- if (getParametersEx(1, &arg) == SUCCESS) {
+ if (zend_get_parameters_ex(1, &arg) == SUCCESS) {
statement = (oci_statement *) zend_fetch_resource(arg, -1, NULL, NULL, 1, le_stmt);
if (statement) {
errh = statement->pError;
pval **stmt;
oci_statement *statement;
- if (getParametersEx(1, &stmt) == FAILURE) {
+ if (zend_get_parameters_ex(1, &stmt) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_connection *connection;
oci_statement *statement;
- if (getParametersEx(2, &conn, &query) == FAILURE) {
+ if (zend_get_parameters_ex(2, &conn, &query) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **stmt, **size;
oci_statement *statement;
- if (getParametersEx(2, &stmt, &size) == FAILURE) {
+ if (zend_get_parameters_ex(2, &stmt, &size) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_connection *connection;
oci_statement *statement;
- if (getParametersEx(1, &conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
oci_out_column *outcol = NULL;
- if (getParametersEx(2, &stmt, &col) == FAILURE) {
+ if (zend_get_parameters_ex(2, &stmt, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **conn;
char version[256];
- if (getParametersEx(1, &conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
ub2 stmttype;
- if (getParametersEx(1, &stmt) == FAILURE) {
+ if (zend_get_parameters_ex(1, &stmt) == FAILURE) {
WRONG_PARAM_COUNT;
}
oci_statement *statement;
ub4 rowcount;
- if (getParametersEx(1, &stmt) == FAILURE) {
+ if (zend_get_parameters_ex(1, &stmt) == FAILURE) {
WRONG_PARAM_COUNT;
}
ODBCLS_FETCH();
PLS_FETCH();
- if (getParametersEx(2, &pv_res, &pv_flag) == FAILURE)
+ if (zend_get_parameters_ex(2, &pv_res, &pv_flag) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(pv_flag);
pval **pv_conn;
ODBCLS_FETCH();
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
odbc_connection *conn;
RETCODE rc;
- if (getParametersEx(2, &pv_conn, &pv_query) == FAILURE) {
+ if (zend_get_parameters_ex(2, &pv_conn, &pv_query) == FAILURE) {
WRONG_PARAM_COUNT;
}
numArgs = ARG_COUNT(ht);
if (numArgs == 1) {
- if (getParametersEx(1, &pv_res) == FAILURE)
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE)
WRONG_PARAM_COUNT;
} else {
- if (getParametersEx(2, &pv_res, &pv_param_arr) == FAILURE)
+ if (zend_get_parameters_ex(2, &pv_res, &pv_param_arr) == FAILURE)
WRONG_PARAM_COUNT;
if ((*pv_param_arr)->type != IS_ARRAY) {
RETCODE rc;
ODBCLS_FETCH();
- if (getParametersEx(1, &pv_res) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE) {
WRONG_PARAM_COUNT;
}
numArgs = ARG_COUNT(ht);
if (numArgs > 2) {
- if (getParametersEx(3, &pv_conn, &pv_query, &pv_flags) == FAILURE)
+ if (zend_get_parameters_ex(3, &pv_conn, &pv_query, &pv_flags) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(pv_flags);
} else {
- if (getParametersEx(2, &pv_conn, &pv_query) == FAILURE)
+ if (zend_get_parameters_ex(2, &pv_conn, &pv_query) == FAILURE)
WRONG_PARAM_COUNT;
}
switch(numArgs) {
case 2:
- if (getParametersEx(2, &pv_res, &pv_res_arr) == FAILURE)
+ if (zend_get_parameters_ex(2, &pv_res, &pv_res_arr) == FAILURE)
WRONG_PARAM_COUNT;
break;
case 3:
- if (getParametersEx(3, &pv_res, &pv_row, &pv_res_arr) == FAILURE)
+ if (zend_get_parameters_ex(3, &pv_res, &pv_row, &pv_res_arr) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(pv_row);
rownum = (*pv_row)->value.lval;
numArgs = ARG_COUNT(ht);
- if (numArgs != 2 || getParametersEx(2, &pv_res, &pv_res_arr) == FAILURE) {
+ if (numArgs != 2 || zend_get_parameters_ex(2, &pv_res, &pv_res_arr) == FAILURE) {
WRONG_PARAM_COUNT;
}
RETCODE rc;
pval **pv_res;
- if (getParametersEx(1, &pv_res) == FAILURE)
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE)
WRONG_PARAM_COUNT;
ZEND_FETCH_RESOURCE(result, odbc_result *, pv_res, -1, "ODBC result", le_result);
numArgs = ARG_COUNT(ht);
if (numArgs == 1) {
- if (getParametersEx(1, &pv_res) == FAILURE)
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE)
WRONG_PARAM_COUNT;
} else {
- if (getParametersEx(2, &pv_res, &pv_row) == FAILURE)
+ if (zend_get_parameters_ex(2, &pv_res, &pv_row) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(pv_row);
rownum = (*pv_row)->value.lval;
field_ind = -1;
field = NULL;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2 , &pv_res, &pv_field) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2 , &pv_res, &pv_field) == FAILURE) {
WRONG_PARAM_COUNT;
}
numArgs = ARG_COUNT(ht);
if (numArgs == 1) {
- if (getParametersEx(1, &pv_res) == FAILURE)
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE)
WRONG_PARAM_COUNT;
} else {
- if (getParametersEx(2, &pv_res, &pv_format) == FAILURE)
+ if (zend_get_parameters_ex(2, &pv_res, &pv_format) == FAILURE)
WRONG_PARAM_COUNT;
}
pval **pv_res;
odbc_result *result;
- if (getParametersEx(1, &pv_res) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE) {
WRONG_PARAM_COUNT;
}
*/
switch(ARG_COUNT(ht)) {
case 3:
- if (getParametersEx(3, &pv_db, &pv_uid, &pv_pwd) == FAILURE) {
+ if (zend_get_parameters_ex(3, &pv_db, &pv_uid, &pv_pwd) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* Use Default: Probably a better way to do this */
cur_opt = SQL_CUR_DEFAULT;
break;
case 4:
- if (getParametersEx(4, &pv_db, &pv_uid, &pv_pwd, &pv_opt) == FAILURE) {
+ if (zend_get_parameters_ex(4, &pv_db, &pv_uid, &pv_pwd, &pv_opt) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(pv_opt);
odbc_connection *conn;
ODBCLS_FETCH();
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
SDWORD rows;
pval **pv_res;
- if (getParametersEx(1, &pv_res) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE) {
WRONG_PARAM_COUNT;
}
odbc_result *result;
pval **pv_res;
- if (getParametersEx(1, &pv_res) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_res) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(result, odbc_result *, pv_res, -1, "ODBC result", le_result);
odbc_result *result;
pval **pv_res, **pv_num;
- if (getParametersEx(2, &pv_res, &pv_num) == FAILURE) {
+ if (zend_get_parameters_ex(2, &pv_res, &pv_num) == FAILURE) {
WRONG_PARAM_COUNT;
}
SWORD tmplen;
pval **pv_res, **pv_num;
- if (getParametersEx(2, &pv_res, &pv_num) == FAILURE) {
+ if (zend_get_parameters_ex(2, &pv_res, &pv_num) == FAILURE) {
WRONG_PARAM_COUNT;
}
SDWORD len;
pval **pv_res, **pv_num;
- if (getParametersEx(2, &pv_res, &pv_num) == FAILURE) {
+ if (zend_get_parameters_ex(2, &pv_res, &pv_num) == FAILURE) {
WRONG_PARAM_COUNT;
}
int i;
pval **pv_res, **pv_name;
- if (getParametersEx(2, &pv_res, &pv_name) == FAILURE) {
+ if (zend_get_parameters_ex(2, &pv_res, &pv_name) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
if (argc == 2) {
- if (getParametersEx(2, &pv_conn, &pv_onoff) == FAILURE) {
+ if (zend_get_parameters_ex(2, &pv_conn, &pv_onoff) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else if (argc == 1) {
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else {
RETCODE rc;
pval **pv_handle, **pv_which, **pv_opt, **pv_val;
- if ( getParametersEx(4, &pv_handle, &pv_which, &pv_opt, &pv_val) == FAILURE) {
+ if ( zend_get_parameters_ex(4, &pv_handle, &pv_which, &pv_opt, &pv_val) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
if (argc == 1) {
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else if (argc == 5) {
- if (getParametersEx(5, &pv_conn, &pv_cat, &pv_schema, &pv_table, &pv_type) == FAILURE) {
+ if (zend_get_parameters_ex(5, &pv_conn, &pv_cat, &pv_schema, &pv_table, &pv_type) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(pv_cat);
argc = ARG_COUNT(ht);
if (argc == 1) {
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else if (argc == 5) {
- if (getParametersEx(5, &pv_conn, &pv_cat, &pv_schema, &pv_table, &pv_column) == FAILURE) {
+ if (zend_get_parameters_ex(5, &pv_conn, &pv_cat, &pv_schema, &pv_table, &pv_column) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(pv_cat);
argc = ARG_COUNT(ht);
if (argc == 5) {
- if (getParametersEx(5, &pv_conn, &pv_cat, &pv_schema, &pv_table, &pv_column) == FAILURE) {
+ if (zend_get_parameters_ex(5, &pv_conn, &pv_cat, &pv_schema, &pv_table, &pv_column) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(pv_cat);
argc = ARG_COUNT(ht);
if (argc == 7) {
- if (getParametersEx(7, &pv_conn, &pv_pcat, &pv_pschema, &pv_ptable,
+ if (zend_get_parameters_ex(7, &pv_conn, &pv_pcat, &pv_pschema, &pv_ptable,
&pv_fcat, &pv_fschema, &pv_ftable) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
if (argc == 1) {
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else if (argc == 2) {
- if (getParametersEx(2, &pv_conn, &pv_data_type) == FAILURE) {
+ if (zend_get_parameters_ex(2, &pv_conn, &pv_data_type) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(pv_data_type);
argc = ARG_COUNT(ht);
if (argc == 4) {
- if (getParametersEx(4, &pv_conn, &pv_cat, &pv_schema, &pv_table) == FAILURE) {
+ if (zend_get_parameters_ex(4, &pv_conn, &pv_cat, &pv_schema, &pv_table) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(pv_cat);
argc = ARG_COUNT(ht);
if (argc == 1) {
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else if (argc == 5) {
- if (getParametersEx(5, &pv_conn, &pv_cat, &pv_schema, &pv_proc, &pv_col) == FAILURE) {
+ if (zend_get_parameters_ex(5, &pv_conn, &pv_cat, &pv_schema, &pv_proc, &pv_col) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(pv_cat);
argc = ARG_COUNT(ht);
if (argc == 1) {
- if (getParametersEx(1, &pv_conn) == FAILURE) {
+ if (zend_get_parameters_ex(1, &pv_conn) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else if (argc == 4) {
- if (getParametersEx(4, &pv_conn, &pv_cat, &pv_schema, &pv_proc) == FAILURE) {
+ if (zend_get_parameters_ex(4, &pv_conn, &pv_cat, &pv_schema, &pv_proc) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(pv_cat);
argc = ARG_COUNT(ht);
if (argc == 7) {
- if (getParametersEx(7, &pv_conn, &pv_type, &pv_cat, &pv_schema,
+ if (zend_get_parameters_ex(7, &pv_conn, &pv_type, &pv_cat, &pv_schema,
&pv_name, &pv_scope, &pv_nullable) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
if (argc == 6) {
- if (getParametersEx(6, &pv_conn, &pv_cat, &pv_schema,
+ if (zend_get_parameters_ex(6, &pv_conn, &pv_cat, &pv_schema,
&pv_name, &pv_unique, &pv_reserved) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
if (argc == 4) {
- if (getParametersEx(4, &pv_conn, &pv_cat, &pv_schema, &pv_table) == FAILURE) {
+ if (zend_get_parameters_ex(4, &pv_conn, &pv_cat, &pv_schema, &pv_table) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(pv_cat);
oraConnection *db_conn;
ORALS_FETCH();
- if (getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
oraConnection *conn;
pval **arg;
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE2(conn, oraConnection *, arg, -1, "Oracle-Connection", le_conn, le_pconn);
oraConnection *conn = NULL;
oraCursor *cursor = NULL;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE2(conn, oraConnection *, arg, -1, "Oracle-Connection", le_conn, le_pconn);
pval **arg;
oraCursor *cursor;
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(cursor, oraCursor *, arg, -1, "Oracle-Cursor", le_cursor);
pval **arg;
oraConnection *conn;
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE2(conn, oraConnection *, arg, -1, "Oracle-Connection", le_conn, le_pconn);
pval **arg;
oraConnection *conn;
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE2(conn, oraConnection *, arg, -1, "Oracle-Connection", le_conn, le_pconn);
pval **arg;
oraConnection *conn;
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE2(conn, oraConnection *, arg, -1, "Oracle-Connection", le_conn, le_pconn);
pval **arg;
oraConnection *conn;
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE2(conn, oraConnection *, arg, -1, "Oracle-Connection", le_conn, le_pconn);
switch (ARG_COUNT(ht)) {
case 3:
- getParametersEx(3,&curs,&sql,&def);
+ zend_get_parameters_ex(3,&curs,&sql,&def);
convert_to_long_ex(def);
if ((*def)->value.lval) {
defer = DEFER_PARSE;
}
break;
case 2:
- getParametersEx(2,&curs,&sql);
+ zend_get_parameters_ex(2,&curs,&sql);
break;
default:
WRONG_PARAM_COUNT;
switch (ARG_COUNT(ht)) {
case 5:
- getParametersEx(5,&curs,&pvar,&svar,&plen,&ptyp);
+ zend_get_parameters_ex(5,&curs,&pvar,&svar,&plen,&ptyp);
convert_to_long_ex(ptyp);
inout = (*ptyp)->value.lval;
break;
case 4:
- getParametersEx(4,&curs,&pvar,&svar,&plen);
+ zend_get_parameters_ex(4,&curs,&pvar,&svar,&plen);
break;
default:
WRONG_PARAM_COUNT;
pval **arg;
oraCursor *cursor = NULL;
- if (getParametersEx(1, &arg) == FAILURE)
+ if (zend_get_parameters_ex(1, &arg) == FAILURE)
WRONG_PARAM_COUNT;
if ((cursor = ora_get_cursor(list, arg)) == NULL) {
pval **arg;
oraCursor *cursor = NULL;
- if (getParametersEx(1, &arg) == FAILURE)
+ if (zend_get_parameters_ex(1, &arg) == FAILURE)
WRONG_PARAM_COUNT;
if ((cursor = ora_get_cursor(list, arg)) == NULL) {
pval **arg;
oraCursor *cursor = NULL;
- if(getParametersEx(1, &arg) == FAILURE)
+ if(zend_get_parameters_ex(1, &arg) == FAILURE)
WRONG_PARAM_COUNT;
if((cursor = ora_get_cursor(list, arg)) == NULL) {
oraCursor *cursor = NULL;
text *query;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &con,&sql) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &con,&sql) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE2(conn, oraConnection *, con, -1, "Oracle-Connection", le_conn, le_pconn);
pval **arg;
oraCursor *cursor;
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)){
case 2:
- getParametersEx(2, &curs, &arr);
+ zend_get_parameters_ex(2, &curs, &arr);
break;
case 3:
- getParametersEx(3, &curs, &arr, &flg);
+ zend_get_parameters_ex(3, &curs, &arr, &flg);
convert_to_long_ex(flg);
flags = (*flg)->value.lval;
break;
pval **curs, **col;
oraCursor *cursor = NULL;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &curs, &col) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &curs, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
int colno;
oraCursor *cursor = NULL;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &curs, &col) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &curs, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **curs, **col;
oraCursor *cursor = NULL;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &curs, &col) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &curs, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* Find the cursor */
int len;
sb2 type;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &curs, &col) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &curs, &col) == FAILURE) {
WRONG_PARAM_COUNT;
}
void *res;
int what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
res = zend_fetch_resource(arg, -1,"Oracle-Connection/Cursor",&what,3,le_conn, le_pconn, le_cursor);
void *res;
int what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
res = zend_fetch_resource(arg, -1,"Oracle-Connection/Cursor",&what,3,le_conn, le_pconn, le_cursor);
/* Get function parameters and do error-checking. */
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, ®ex, &subject) == FAILURE) {
+ if (zend_get_parameters_ex(2, ®ex, &subject) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 3:
- if (getParametersEx(3, ®ex, &subject, &subpats) == FAILURE) {
+ if (zend_get_parameters_ex(3, ®ex, &subject, &subpats) == FAILURE) {
WRONG_PARAM_COUNT;
}
if (global)
break;
case 4:
- if (getParametersEx(4, ®ex, &subject, &subpats, &subpats_order) == FAILURE) {
+ if (zend_get_parameters_ex(4, ®ex, &subject, &subpats, &subpats_order) == FAILURE) {
WRONG_PARAM_COUNT;
}
if (!ParameterPassedByReference(ht, 3)) {
ulong num_key;
/* Get function parameters and do error-checking. */
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, ®ex, &replace, &subject) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, ®ex, &replace, &subject) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* Get function parameters and do error checking */
argc = ARG_COUNT(ht);
- if (argc < 1 || argc > 4 || getParametersEx(argc, ®ex, &subject, &limit, &flags) == FAILURE) {
+ if (argc < 1 || argc > 4 || zend_get_parameters_ex(argc, ®ex, &subject, &limit, &flags) == FAILURE) {
WRONG_PARAM_COUNT;
}
c; /* Current character */
/* Get the arguments and check for errors */
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &in_str_arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &in_str_arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* Get arguments and do error checking */
- if (ARG_COUNT(ht) != 2 || getParametersEx(ARG_COUNT(ht), ®ex, &input) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(ARG_COUNT(ht), ®ex, &input) == FAILURE) {
WRONG_PARAM_COUNT;
}
PDF *pdf;
PDF_TLS_VARS;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &file) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **arg;
int ac = ARG_COUNT(ht);
- if (ac < 0 || ac > 1 || getParametersEx(ac, &arg) == FAILURE) {
+ if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
char *oldstr;
int ac = ARG_COUNT(ht);
- if (ac < 0 || ac > 2 || getParametersEx(ac, &what, &value) == FAILURE) {
+ if (ac < 0 || ac > 2 || zend_get_parameters_ex(ac, &what, &value) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **arg;
int ac = ARG_COUNT(ht);
- if (ac < 1 || ac > 1 || getParametersEx(ac, &arg) == FAILURE) {
+ if (ac < 1 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
char *filename = NULL;
int ac = ARG_COUNT(ht);
- if (ac < 0 || ac > 1 || getParametersEx(ac, &arg) == FAILURE) {
+ if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *filename = NULL;
int ac = ARG_COUNT(ht);
- if (ac < 0 || ac > 1 || getParametersEx(ac, &arg) == FAILURE) {
+ if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **arg;
int ac = ARG_COUNT(ht);
- if (ac < 0 || ac > 1 || getParametersEx(ac, &arg) == FAILURE) {
+ if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
old = estrdup(PS(session_name));
- if(ac < 0 || ac > 1 || getParametersEx(ac, &p_name) == FAILURE) {
+ if(ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) {
WRONG_PARAM_COUNT;
}
old = estrdup(PS(mod)->name);
- if(ac < 0 || ac > 1 || getParametersEx(ac, &p_name) == FAILURE) {
+ if(ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) {
WRONG_PARAM_COUNT;
}
ps_user *mdata;
PSLS_FETCH();
- if(ARG_COUNT(ht) != 6 || getParametersArrayEx(6, args) == FAILURE) {
+ if(ARG_COUNT(ht) != 6 || zend_get_parameters_array_ex(6, args) == FAILURE) {
WRONG_PARAM_COUNT;
}
old = estrdup(PS(save_path));
- if(ac < 0 || ac > 1 || getParametersEx(ac, &p_name) == FAILURE) {
+ if(ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) {
WRONG_PARAM_COUNT;
}
if(PS(id))
old = estrdup(PS(id));
- if(ac < 0 || ac > 1 || getParametersEx(ac, &p_name) == FAILURE) {
+ if(ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) {
WRONG_PARAM_COUNT;
}
} else
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
int ac = ARG_COUNT(ht);
PSLS_FETCH();
- if(ac != 1 || getParametersEx(ac, &p_name) == FAILURE) {
+ if(ac != 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) {
WRONG_PARAM_COUNT;
}
int ac = ARG_COUNT(ht);
PSLS_FETCH();
- if(ac != 1 || getParametersEx(ac, &p_name) == FAILURE) {
+ if(ac != 1 || zend_get_parameters_ex(ac, &p_name) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **str;
PSLS_FETCH();
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
BLS_FETCH();
old_compare_func = BG(user_compare_func_name);
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &array, &BG(user_compare_func_name)) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &array, &BG(user_compare_func_name)) == FAILURE) {
BG(user_compare_func_name) = old_compare_func;
WRONG_PARAM_COUNT;
}
BLS_FETCH();
old_compare_func = BG(user_compare_func_name);
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &array, &BG(user_compare_func_name)) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &array, &BG(user_compare_func_name)) == FAILURE) {
BG(user_compare_func_name) = old_compare_func;
WRONG_PARAM_COUNT;
}
BLS_FETCH();
old_compare_func = BG(user_compare_func_name);
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &array, &BG(user_compare_func_name)) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &array, &BG(user_compare_func_name)) == FAILURE) {
BG(user_compare_func_name) = old_compare_func;
WRONG_PARAM_COUNT;
}
pval **array, **entry;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array, **entry;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array, **entry;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array, **entry;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
pval **array, **entry;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
ulong num_key;
HashTable *target_hash;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
target_hash = HASH_OF(*array);
if (argc == 1) {
pval **arr;
- if (getParametersEx(1, &arr) == FAILURE || (*arr)->type != IS_ARRAY) {
+ if (zend_get_parameters_ex(1, &arr) == FAILURE || (*arr)->type != IS_ARRAY) {
WRONG_PARAM_COUNT;
}
if (zend_hash_minmax((*arr)->value.ht, array_data_compare, 0, (void **) &result)==SUCCESS) {
pval **min, result;
int i;
- if (getParametersArrayEx(ARG_COUNT(ht), args)==FAILURE) {
+ if (zend_get_parameters_array_ex(ARG_COUNT(ht), args)==FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
if (argc == 1) {
pval **arr;
- if (getParametersEx(1, &arr) == FAILURE || (*arr)->type != IS_ARRAY) {
+ if (zend_get_parameters_ex(1, &arr) == FAILURE || (*arr)->type != IS_ARRAY) {
WRONG_PARAM_COUNT;
}
if (zend_hash_minmax((*arr)->value.ht, array_data_compare, 1, (void **) &result)==SUCCESS) {
pval **max, result;
int i;
- if (getParametersArrayEx(ARG_COUNT(ht), args)==FAILURE) {
+ if (zend_get_parameters_array_ex(ARG_COUNT(ht), args)==FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
old_walk_func_name = BG(array_walk_func_name);
if (argc < 2 || argc > 3 ||
- getParametersEx(argc, &array, &BG(array_walk_func_name), &userdata) == FAILURE) {
+ zend_get_parameters_ex(argc, &array, &BG(array_walk_func_name), &userdata) == FAILURE) {
BG(array_walk_func_name) = old_walk_func_name;
WRONG_PARAM_COUNT;
}
res; /* comparison result */
HashTable *target_hash; /* array hashtable */
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &value, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &value, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &var_array) == FAILURE) {
+ if (zend_get_parameters_ex(1, &var_array) == FAILURE) {
WRONG_PARAM_COUNT;
}
extype = EXTR_OVERWRITE;
break;
case 2:
- if (getParametersEx(2, &var_array, &etype) == FAILURE) {
+ if (zend_get_parameters_ex(2, &var_array, &etype) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(etype);
break;
case 3:
- if (getParametersEx(3, &var_array, &etype, &prefix) == FAILURE) {
+ if (zend_get_parameters_ex(3, &var_array, &etype, &prefix) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(etype);
args = (zval ***)emalloc(ARG_COUNT(ht) * sizeof(zval **));
- if (getParametersArrayEx(ARG_COUNT(ht), args) == FAILURE) {
+ if (zend_get_parameters_array_ex(ARG_COUNT(ht), args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
zval **zlow, **zhigh;
int low, high;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2,&zlow,&zhigh) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2,&zlow,&zhigh) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(zlow);
{
zval **array;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
if ((*array)->type != IS_ARRAY) {
/* Allocate arguments array and get the arguments, checking for errors. */
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
HashTable *new_hash; /* New stack */
/* Get the arguments and do error-checking */
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &stack) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &stack) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* Allocate arguments array and get the arguments, checking for errors. */
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
/* Allocate arguments array and get the arguments, checking for errors. */
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
/* Get the arguments and do error-checking */
argc = ARG_COUNT(ht);
- if (argc < 2 || argc > 3 || getParametersEx(argc, &input, &offset, &length)) {
+ if (argc < 2 || argc > 3 || zend_get_parameters_ex(argc, &input, &offset, &length)) {
WRONG_PARAM_COUNT;
}
/* Allocate arguments array and get the arguments, checking for errors. */
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
/* Get arguments and do error-checking */
if (ARG_COUNT(ht) < 1 || ARG_COUNT(ht) > 2 ||
- getParametersEx(ARG_COUNT(ht), &input, &search_value) == FAILURE) {
+ zend_get_parameters_ex(ARG_COUNT(ht), &input, &search_value) == FAILURE) {
WRONG_PARAM_COUNT;
}
**entry; /* An entry in the input array */
/* Get arguments and do error-checking */
- if (ARG_COUNT(ht) != 1 || getParametersEx(ARG_COUNT(ht), &input) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(ARG_COUNT(ht), &input) == FAILURE) {
WRONG_PARAM_COUNT;
}
HashTable *myht;
/* Get arguments and do error-checking */
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &input) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &input) == FAILURE) {
WRONG_PARAM_COUNT;
}
ulong num_key;
/* Get arguments and do error-checking */
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &input) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &input) == FAILURE) {
WRONG_PARAM_COUNT;
}
int i;
/* Get arguments and do error-checking */
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &input, &pad_size, &pad_value) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &input, &pad_size, &pad_value) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *string_key;
ulong num_key;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &array) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* Allocate arguments array and get the arguments, checking for errors. */
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
RETURN_TRUE;
}
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &assertion) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &assertion) == FAILURE) {
WRONG_PARAM_COUNT;
}
int ac = ARG_COUNT(ht);
ASSERTLS_FETCH();
- if (ac < 1 || ac > 2 || getParametersEx(ac, &what, &value) == FAILURE) {
+ if (ac < 1 || ac > 2 || zend_get_parameters_ex(ac, &what, &value) == FAILURE) {
WRONG_PARAM_COUNT;
}
unsigned char *result;
int ret_length;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1,&string) == FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1,&string) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(string);
unsigned char *result;
int ret_length;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1,&string) == FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1,&string) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(string);
SLS_FETCH();
#endif
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
pval **str;
BLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &num) == FAILURE) {
+ if (zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
base = 10;
break;
case 2:
- if (getParametersEx(2, &num, &arg_base) == FAILURE) {
+ if (zend_get_parameters_ex(2, &num, &arg_base) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg_base);
{
pval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
*return_value=**num;
{
pval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
*return_value=**num;
{
pval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(num);
#if HAVE_USLEEP
pval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(num);
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch ((*arg)->type) {
pval **var, **type;
char *new_type;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &var, &type) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &var, &type) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(type);
pval **varname;
char *value;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &varname)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &varname)==FAILURE) {
WRONG_PARAM_COUNT;
}
pval **new_setting;
PLS_FETCH();
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &new_setting)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &new_setting)==FAILURE) {
RETURN_FALSE;
}
convert_to_boolean_ex(new_setting);
{
pval **arg;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &arg)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &arg)==FAILURE) {
RETURN_FALSE;
}
if ((*arg)->type == type) {
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1,&string) == FAILURE) {
+ if (zend_get_parameters_ex(1,&string) == FAILURE) {
php_error(E_WARNING,"Invalid argument 1 in error_log");
RETURN_FALSE;
}
break;
case 2:
- if (getParametersEx(2,&string,&erropt) == FAILURE) {
+ if (zend_get_parameters_ex(2,&string,&erropt) == FAILURE) {
php_error(E_WARNING,"Invalid arguments in error_log");
RETURN_FALSE;
}
opt_err=(*erropt)->value.lval;
break;
case 3:
- if (getParametersEx(3,&string,&erropt,&option) == FAILURE){
+ if (zend_get_parameters_ex(3,&string,&erropt,&option) == FAILURE){
php_error(E_WARNING,"Invalid arguments in error_log");
RETURN_FALSE;
}
opt=(*option)->value.str.val;
break;
case 4:
- if (getParametersEx(4,&string,&erropt,&option,&emailhead) == FAILURE){
+ if (zend_get_parameters_ex(4,&string,&erropt,&option,&emailhead) == FAILURE){
php_error(E_WARNING,"Invalid arguments in error_log");
RETURN_FALSE;
}
}
params = (pval ***) emalloc(sizeof(pval **)*arg_count);
- if (getParametersArrayEx(arg_count, params)==FAILURE) {
+ if (zend_get_parameters_array_ex(arg_count, params)==FAILURE) {
efree(params);
RETURN_FALSE;
}
}
params = (pval ***) emalloc(sizeof(pval **)*arg_count);
- if (getParametersArrayEx(arg_count, params)==FAILURE) {
+ if (zend_get_parameters_array_ex(arg_count, params)==FAILURE) {
efree(params);
RETURN_FALSE;
}
zend_syntax_highlighter_ini syntax_highlighter_ini;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &filename)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &filename)==FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
pval **expr;
zend_syntax_highlighter_ini syntax_highlighter_ini;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &expr)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &expr)==FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **varname;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &varname)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &varname)==FAILURE) {
WRONG_PARAM_COUNT;
}
pval **varname, **new_value;
char *old_value;
- if (ARG_COUNT(ht)!=2 || getParametersEx(2, &varname, &new_value)==FAILURE) {
+ if (ARG_COUNT(ht)!=2 || zend_get_parameters_ex(2, &varname, &new_value)==FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **varname;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &varname)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &varname)==FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **expr;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &expr)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &expr)==FAILURE) {
WRONG_PARAM_COUNT;
}
case 0:
break;
case 1:
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
RETURN_FALSE;
}
convert_to_boolean_ex(arg);
pval **name,**proto;
struct servent *serv;
- if(ARG_COUNT(ht) != 2 || getParametersEx(2,&name,&proto) == FAILURE) {
+ if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2,&name,&proto) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(name);
pval **port,**proto;
struct servent *serv;
- if(ARG_COUNT(ht) != 2 || getParametersEx(2,&port,&proto) == FAILURE) {
+ if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2,&port,&proto) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(port);
pval **name;
struct protoent *ent;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &name) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &name) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **proto;
struct protoent *ent;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &proto) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &proto) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
zval **extension_name;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &extension_name)) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &extension_name)) {
WRONG_PARAM_COUNT;
}
zend_module_entry *module;
zend_function_entry *func;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &extension_name)) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &extension_name)) {
WRONG_PARAM_COUNT;
}
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &arg1)==FAILURE) {
+ if (zend_get_parameters_ex(1, &arg1)==FAILURE) {
RETURN_FALSE;
}
break;
case 2:
- if (getParametersEx(2, &arg1, &arg2)==FAILURE) {
+ if (zend_get_parameters_ex(2, &arg1, &arg2)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(arg2);
} else { \
ZEND_FETCH_RESOURCE(dirp,php_dir *,0,DIR(default_dir), "Directory", le_dirp); \
} \
- } else if ((ARG_COUNT(ht) != 1) || getParametersEx(1, &id) == FAILURE) { \
+ } else if ((ARG_COUNT(ht) != 1) || zend_get_parameters_ex(1, &id) == FAILURE) { \
WRONG_PARAM_COUNT; \
} else { \
ZEND_FETCH_RESOURCE(dirp,php_dir *,id,-1, "Directory", le_dirp); \
php_dir *dirp;
DIRLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
pval **arg;
int ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
PLS_FETCH();
/* obtain arguments */
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &file) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &file) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
struct in_addr in;
int i;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &arg1) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
type = T_MX;
convert_to_string_ex(arg1);
break;
case 2:
- if (getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg1);
int type, fd, act;
void *what;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* check args */
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1,&filename) == FAILURE) {
+ if (zend_get_parameters_ex(1,&filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 2:
- if (getParametersEx(2,&filename,&arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2,&filename,&arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);
/* check args */
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1,&filename) == FAILURE) {
+ if (zend_get_parameters_ex(1,&filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 2:
- if (getParametersEx(2,&filename,&arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2,&filename,&arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);
char *t;
char p[64];
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg1);
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2,&arg1,&arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2,&arg1,&arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 3:
- if (getParametersEx(3,&arg1,&arg2,&arg3) == FAILURE) {
+ if (zend_get_parameters_ex(3,&arg1,&arg2,&arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg3);
int type;
void *what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *b, buf[1024];
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg1);
void *what;
FIL_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
int socketd=0;
void *what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
what = zend_fetch_resource(arg1,-1,"File-Handle",&type,3,le_fopen,le_popen,le_socket);
int socketd = 0;
void *what;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
void *what;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
int socketd=0;
void *what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &fd, &bytes) == FAILURE) {
+ if (zend_get_parameters_ex(2, &fd, &bytes) == FAILURE) {
RETURN_FALSE;
}
break;
case 3:
- if (getParametersEx(3, &fd, &bytes, &allow) == FAILURE) {
+ if (zend_get_parameters_ex(3, &fd, &bytes, &allow) == FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(allow);
switch (ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &arg1, &arg2)==FAILURE) {
+ if (zend_get_parameters_ex(2, &arg1, &arg2)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(arg2);
num_bytes = (*arg2)->value.str.len;
break;
case 3:
- if (getParametersEx(3, &arg1, &arg2, &arg3)==FAILURE) {
+ if (zend_get_parameters_ex(3, &arg1, &arg2, &arg3)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(arg2);
switch (ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &arg1, &arg2)==FAILURE) {
+ if (zend_get_parameters_ex(2, &arg1, &arg2)==FAILURE) {
RETURN_FALSE;
}
break;
pval **arg1;
void *what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **arg1;
void *what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **arg1, **arg2;
void *what;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
int ret,mode;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg1);
int ret;
PLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg1);
/* check args */
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1,&arg1) == FAILURE) {
+ if (zend_get_parameters_ex(1,&arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 2:
- if (getParametersEx(2,&arg1,&arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2,&arg1,&arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);
if (arg_count == 0) {
umask(oldumask);
} else {
- if (arg_count > 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (arg_count > 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg1);
int socketd=0;
void *what;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
int ret;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &old_arg, &new_arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &old_arg, &new_arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
int fd_s,fd_t,read_bytes;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &source, &target) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &source, &target) == FAILURE) {
WRONG_PARAM_COUNT;
}
void *what;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &fd, &bytes) == FAILURE) {
+ if (zend_get_parameters_ex(2, &fd, &bytes) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 3:
- if (getParametersEx(3, &fd, &bytes, &p_delim) == FAILURE) {
+ if (zend_get_parameters_ex(3, &fd, &bytes, &p_delim) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(p_delim);
return;
}
else if(ARG_COUNT(ht) == 1) {
- if(getParametersEx(1, &arg) == FAILURE) {
+ if(zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
what = zend_fetch_resource(arg,-1,"select",&type,3,le_fopen,le_socket,le_popen);
else {
pval ***args = (pval ***) emalloc(sizeof(pval **) * ARG_COUNT(ht));
int i;
- if(getParametersArrayEx(ARG_COUNT(ht), args) == FAILURE) {
+ if(zend_get_parameters_array_ex(ARG_COUNT(ht), args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
pval **timeout;
struct timeval tv;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &timeout) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &timeout) == FAILURE) {
WRONG_PARAM_COUNT;
}
void *what;
int type, fd;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &fdarg) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &fdarg) == FAILURE) {
WRONG_PARAM_COUNT;
}
}
args = (pval ***)emalloc(argc * sizeof(pval *));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT_WITH_RETVAL(NULL);
}
unsigned char *old;
char *new;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
int inx;
char ind[ 2 ];
- if (ac < 0 || ac > 1 || getParametersEx(ac, &whichone) == FAILURE) {
+ if (ac < 0 || ac > 1 || zend_get_parameters_ex(ac, &whichone) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)){
case 1:
- if (getParametersEx(1, &arg1) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg1);
break;
case 2:
- if (getParametersEx(2, &arg1, &info) == FAILURE) {
+ if (zend_get_parameters_ex(2, &arg1, &info) == FAILURE) {
WRONG_PARAM_COUNT;
}
if (!ParameterPassedByReference(ht, 2)) {
flag = 0xFFFFFFFF;
break;
case 1:
- if (getParametersEx(1, &flag_arg)==FAILURE) {
+ if (zend_get_parameters_ex(1, &flag_arg)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(flag_arg);
flag = 0xFFFFFFFF;
break;
case 1:
- if (getParametersEx(1, &flag_arg)==FAILURE) {
+ if (zend_get_parameters_ex(1, &flag_arg)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(flag_arg);
switch(ARG_COUNT(ht)){
case 3:
- if (getParametersEx(3, &iptcdata, &jpeg_file, &spool_flag) == FAILURE) {
+ if (zend_get_parameters_ex(3, &iptcdata, &jpeg_file, &spool_flag) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(iptcdata);
break;
case 2:
- if (getParametersEx(2, &iptcdata, &jpeg_file) == FAILURE) {
+ if (zend_get_parameters_ex(2, &iptcdata, &jpeg_file) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(iptcdata);
unsigned char key[ 16 ];
zval *values, **str, **element;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
char buff[256];
int ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &filename) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
struct stat sb;
int ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &filename) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
int ret;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &topath, &frompath) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &topath, &frompath) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(topath);
int ret;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &topath, &frompath) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &topath, &frompath) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(topath);
int ret;
PLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &filename) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(filename);
int argc;
argc = ARG_COUNT(ht);
- if (argc < 3 || argc > 4 || getParametersArrayEx(argc, argv) == FAILURE) {
+ if (argc < 3 || argc > 4 || zend_get_parameters_array_ex(argc, argv) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* To: */
{
zval **value;
- if (ARG_COUNT(ht)!=1||getParametersEx(1,&value)==FAILURE) {
+ if (ARG_COUNT(ht)!=1||zend_get_parameters_ex(1,&value)==FAILURE) {
WRONG_PARAM_COUNT;
}
{
zval **value;
- if (ARG_COUNT(ht)!=1||getParametersEx(1,&value)==FAILURE) {
+ if (ARG_COUNT(ht)!=1||zend_get_parameters_ex(1,&value)==FAILURE) {
WRONG_PARAM_COUNT;
}
PHP_FUNCTION(floor) {
zval **value;
- if (ARG_COUNT(ht)!=1||getParametersEx(1,&value)==FAILURE) {
+ if (ARG_COUNT(ht)!=1||zend_get_parameters_ex(1,&value)==FAILURE) {
WRONG_PARAM_COUNT;
}
{
zval **value;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &value) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &value) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num1, **num2;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &num1, &num2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &num1, &num2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num1);
{
zval **num1, **num2;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2,&num1,&num2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2,&num1,&num2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num1);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **num;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(num);
{
zval **deg;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, °) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, °) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(deg);
{
zval **rad;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &rad) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &rad) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_double_ex(rad);
zval **arg;
long ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **arg;
long ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **arg;
long ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **arg;
char *result;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **arg;
char *result;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **arg;
char *result;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **number, **frombase, **tobase, temp;
char *result;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &number, &frombase, &tobase) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &number, &frombase, &tobase) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(number);
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &num)==FAILURE) {
+ if (zend_get_parameters_ex(1, &num)==FAILURE) {
RETURN_FALSE;
}
convert_to_double_ex(num);
RETURN_STRING(_php_math_number_format((*num)->value.dval,0,dec_point,thousand_sep),0);
break;
case 2:
- if (getParametersEx(2, &num, &dec)==FAILURE) {
+ if (zend_get_parameters_ex(2, &num, &dec)==FAILURE) {
RETURN_FALSE;
}
convert_to_double_ex(num);
RETURN_STRING(_php_math_number_format((*num)->value.dval,(*dec)->value.lval,dec_point,thousand_sep),0);
break;
case 4:
- if (getParametersEx(4, &num, &dec, &d_p, &t_s)==FAILURE) {
+ if (zend_get_parameters_ex(4, &num, &dec, &d_p, &t_s)==FAILURE) {
RETURN_FALSE;
}
convert_to_double_ex(num);
int i;
char *r;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
char *result = 0;
int phones = 0;
- if (getParametersEx(2, &pstr, &pphones) == SUCCESS) {
+ if (zend_get_parameters_ex(2, &pstr, &pphones) == SUCCESS) {
convert_to_long_ex(pphones);
phones = (*pphones)->value.lval;
- } else if (getParametersEx(1, &pstr) == FAILURE) {
+ } else if (zend_get_parameters_ex(1, &pstr) == FAILURE) {
WRONG_PARAM_COUNT;
}
int who = RUSAGE_SELF;
if(ac == 1 &&
- getParametersEx(ac, &pwho) != FAILURE) {
+ zend_get_parameters_ex(ac, &pwho) != FAILURE) {
convert_to_long_ex(pwho);
if((*pwho)->value.lval == 1)
who = RUSAGE_CHILDREN;
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg);
pval **arg;
BLS_FETCH();
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg);
case 0:
break;
case 2:
- if (getParametersEx(2, &p_min, &p_max)==FAILURE) {
+ if (zend_get_parameters_ex(2, &p_min, &p_max)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(p_min);
case 0:
break;
case 2:
- if (getParametersEx(2, &p_min, &p_max)==FAILURE) {
+ if (zend_get_parameters_ex(2, &p_min, &p_max)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(p_min);
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, ®ex, &findin) == FAILURE) {
+ if (zend_get_parameters_ex(2, ®ex, &findin) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* don't bother doing substring matching if we're not going
copts |= REG_NOSUB;
break;
case 3:
- if (getParametersEx(3, ®ex, &findin, &array) == FAILURE) {
+ if (zend_get_parameters_ex(3, ®ex, &findin, &array) == FAILURE) {
WRONG_PARAM_COUNT;
}
if (!ParameterPassedByReference(ht, 3)) {
char *replace;
char *ret;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &arg_pattern, &arg_replace, &arg_string) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg_pattern, &arg_replace, &arg_string) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch (ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &spliton, &str) == FAILURE)
+ if (zend_get_parameters_ex(2, &spliton, &str) == FAILURE)
WRONG_PARAM_COUNT;
count = -1;
break;
case 3:
- if (getParametersEx(3, &spliton, &str, &arg_count) == FAILURE)
+ if (zend_get_parameters_ex(3, &spliton, &str, &arg_count) == FAILURE)
WRONG_PARAM_COUNT;
convert_to_long_ex(arg_count);
count = (*arg_count)->value.lval;
unsigned char c;
register int i, j;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &string)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &string)==FAILURE) {
WRONG_PARAM_COUNT;
}
0, /* Y */
'2'}; /* Z */
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &parg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &parg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(parg);
char *new;
size_t newlen;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &data) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &data) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
zval **s1,**s2;
- if (ARG_COUNT(ht)!=2 || getParametersEx(2, &s1, &s2) == FAILURE) {
+ if (ARG_COUNT(ht)!=2 || zend_get_parameters_ex(2, &s1, &s2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(s1);
{
zval **s1,**s2;
- if (ARG_COUNT(ht)!=2 || getParametersEx(2, &s1, &s2) == FAILURE) {
+ if (ARG_COUNT(ht)!=2 || zend_get_parameters_ex(2, &s1, &s2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(s1);
{
pval **str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
{
pval **str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
{
pval **str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
{
pval **str, **delim;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &delim, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &delim, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **arg1, **arg2, *delim, *arr;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
- if ((argc == 1 && getParametersEx(1, &tok) == FAILURE) ||
- (argc == 2 && getParametersEx(2, &str, &tok) == FAILURE) ||
+ if ((argc == 1 && zend_get_parameters_ex(1, &tok) == FAILURE) ||
+ (argc == 2 && zend_get_parameters_ex(2, &str, &tok) == FAILURE) ||
argc < 1 || argc > 2) {
WRONG_PARAM_COUNT;
}
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg)) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg)) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
pval **str;
char *ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str)) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str)) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
pval **str;
char *ret, *c;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str)) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str)) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
pval **str;
char *ret;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str)) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str)) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
char *found = NULL;
char needle_char[2];
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &haystack, &needle) ==
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &haystack, &needle) ==
FAILURE) {
WRONG_PARAM_COUNT;
}
char *found = NULL;
char needle_char[2];
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &haystack, &needle) ==
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &haystack, &needle) ==
FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &haystack, &needle) == FAILURE) {
+ if (zend_get_parameters_ex(2, &haystack, &needle) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 3:
- if (getParametersEx(3, &haystack, &needle, &OFFSET) == FAILURE) {
+ if (zend_get_parameters_ex(3, &haystack, &needle, &OFFSET) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(OFFSET);
pval **haystack, **needle;
char *found = NULL;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &haystack, &needle) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &haystack, &needle) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(haystack);
pval **haystack, **needle;
char *found = NULL;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &haystack, &needle) ==
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &haystack, &needle) ==
FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
if (argc < 1 || argc > 3 ||
- getParametersEx(argc, &p_str, &p_chunklen, &p_ending) == FAILURE) {
+ zend_get_parameters_ex(argc, &p_str, &p_chunklen, &p_ending) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
- if ((argc == 2 && getParametersEx(2, &string, &from) == FAILURE) ||
- (argc == 3 && getParametersEx(3, &string, &from, &len) == FAILURE) ||
+ if ((argc == 2 && zend_get_parameters_ex(2, &string, &from) == FAILURE) ||
+ (argc == 3 && zend_get_parameters_ex(3, &string, &from, &len) == FAILURE) ||
argc < 2 || argc > 3) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
- if ((argc == 3 && getParametersEx(3, &string, &repl, &from) == FAILURE) ||
- (argc == 4 && getParametersEx(4, &string, &repl, &from, &len) == FAILURE) ||
+ if ((argc == 3 && zend_get_parameters_ex(3, &string, &repl, &from) == FAILURE) ||
+ (argc == 4 && zend_get_parameters_ex(4, &string, &repl, &from, &len) == FAILURE) ||
argc < 3 || argc > 4) {
WRONG_PARAM_COUNT;
}
char *p, *q;
char c;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
{
pval **str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
pval **num;
char temp[2];
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &num) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(num);
{
pval **arg;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
char *r;
char *r_end;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
pval **str, **from, **to;
int ac = ARG_COUNT(ht);
- if (ac < 2 || ac > 3 || getParametersEx(ac, &str, &from, &to) == FAILURE) {
+ if (ac < 2 || ac > 3 || zend_get_parameters_ex(ac, &str, &from, &to) == FAILURE) {
WRONG_PARAM_COUNT;
}
int i,len;
char c;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &str)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &str)==FAILURE) {
WRONG_PARAM_COUNT;
}
int sim;
if (ac < 2 || ac > 3 ||
- getParametersEx(ac, &t1, &t2, &percent) == FAILURE) {
+ zend_get_parameters_ex(ac, &t1, &t2, &percent) == FAILURE) {
WRONG_PARAM_COUNT;
}
{
pval **str, **what;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &str, &what) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &str, &what) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
{
pval **str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
{
pval **str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
{
pval **str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &str) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &str) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(str);
int len = 0;
if(ARG_COUNT(ht) != 3 ||
- getParametersEx(3, &needle, &str, &haystack) == FAILURE) {
+ zend_get_parameters_ex(3, &needle, &str, &haystack) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &str)==FAILURE) {
+ if (zend_get_parameters_ex(1, &str)==FAILURE) {
RETURN_FALSE;
}
break;
case 2:
- if (getParametersEx(2, &str, &max_chars_per_line)==FAILURE) {
+ if (zend_get_parameters_ex(2, &str, &max_chars_per_line)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(max_chars_per_line);
{
pval **str;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &str)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &str)==FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 1:
- if(getParametersEx(1, &str)==FAILURE) {
+ if(zend_get_parameters_ex(1, &str)==FAILURE) {
RETURN_FALSE;
}
break;
case 2:
- if(getParametersEx(2, &str, &allow)==FAILURE) {
+ if(zend_get_parameters_ex(2, &str, &allow)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(allow);
char *loc, *retval;
BLS_FETCH();
- if (ARG_COUNT(ht)!=2 || getParametersEx(2, &pcategory, &plocale)==FAILURE)
+ if (ARG_COUNT(ht)!=2 || zend_get_parameters_ex(2, &pcategory, &plocale)==FAILURE)
WRONG_PARAM_COUNT;
#ifdef HAVE_SETLOCALE
convert_to_string_ex(pcategory);
PLS_FETCH();
SLS_FETCH();
- if (getParametersEx(1, &arg) == FAILURE) {
+ if (zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
int result_len; /* Length of the resulting string */
int i;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &input_str, &mult) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &input_str, &mult) == FAILURE) {
WRONG_PARAM_COUNT;
}
char retstr[256];
int retlen=0;
- if (ac < 1 || ac > 2 || getParametersEx(ac, &input, &mode) == FAILURE) {
+ if (ac < 1 || ac > 2 || zend_get_parameters_ex(ac, &input, &mode) == FAILURE) {
WRONG_PARAM_COUNT;
}
PHP_FUNCTION(openlog)
{
pval **ident, **option, **facility;
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &ident, &option, &facility) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &ident, &option, &facility) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(ident);
{
pval **priority, **message;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &priority, &message) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &priority, &message) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(priority);
struct timeval tv;
argc = ARG_COUNT(ht);
- if (argc < 1 || argc > 2 || getParametersEx(argc, &prefix, &flags)) {
+ if (argc < 1 || argc > 2 || zend_get_parameters_ex(argc, &prefix, &flags)) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(prefix);
pval **string;
url *resource;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &string) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &string) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(string);
pval **arg;
char *str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
pval **arg;
int len;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
pval **arg;
char *str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
pval **arg;
int len;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
argc = ARG_COUNT(ht);
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (ARG_COUNT(ht) == 0 || getParametersArrayEx(argc, args) == FAILURE) {
+ if (ARG_COUNT(ht) == 0 || zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
{
pval **struc;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &struc) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &struc) == FAILURE) {
WRONG_PARAM_COUNT;
}
return_value->type = IS_STRING;
{
pval **buf;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &buf) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &buf) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &arg_key)==FAILURE) {
+ if (zend_get_parameters_ex(1, &arg_key)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(arg_key);
key = (int)(*arg_key)->value.lval;
break;
case 2:
- if (getParametersEx(2, &arg_key, &arg_max_acquire)==FAILURE) {
+ if (zend_get_parameters_ex(2, &arg_key, &arg_max_acquire)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(arg_key);
max_acquire = (int)(*arg_max_acquire)->value.lval;
break;
case 3:
- if (getParametersEx(3, &arg_key, &arg_max_acquire, &arg_perm)==FAILURE) {
+ if (zend_get_parameters_ex(3, &arg_key, &arg_max_acquire, &arg_perm)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(arg_key);
switch(ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1, &arg_id)==FAILURE) {
+ if (zend_get_parameters_ex(1, &arg_id)==FAILURE) {
RETURN_FALSE;
}
convert_to_long_ex(arg_id);
shm_flag = 0666;
shm_size = php_sysvshm.init_mem;
- if(ac < 1 || ac > 3 || getParametersEx(ac, &arg_key, &arg_size, &arg_flag) == FAILURE) {
+ if(ac < 1 || ac > 3 || zend_get_parameters_ex(ac, &arg_key, &arg_size, &arg_flag) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **arg_id;
long id;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &arg_id) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg_id) == FAILURE) {
WRONG_PARAM_COUNT;
}
long id;
key_t key;
- if(ARG_COUNT(ht) != 1 || getParametersEx(1, &arg_key) == FAILURE) {
+ if(ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg_key) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval shm_var;
int ret;
- if(ARG_COUNT(ht) != 3 || getParametersEx(3, &arg_id, &arg_key,&arg_var) == FAILURE) {
+ if(ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &arg_id, &arg_key,&arg_var) == FAILURE) {
WRONG_PARAM_COUNT;
}
long shm_varpos;
sysvshm_chunk *shm_var;
- if(ARG_COUNT(ht) != 2 || getParametersEx(2, &arg_id, &arg_key) == FAILURE) {
+ if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg_id, &arg_key) == FAILURE) {
WRONG_PARAM_COUNT;
}
int type;
long shm_varpos;
- if(ARG_COUNT(ht) != 2 || getParametersEx(2, &arg_id, &arg_key) == FAILURE) {
+ if(ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg_id, &arg_key) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *buf;
argc = ARG_COUNT(ht);
- if(argc < 1 || argc > 2 || getParametersEx(argc, &var, &comment) == FAILURE) {
+ if(argc < 1 || argc > 2 || zend_get_parameters_ex(argc, &var, &comment) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
/* Allocate arguments array and get the arguments, checking for errors. */
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
comment = NULL;
argc = ARG_COUNT(ht);
- if (argc > 1 || (argc == 1 && getParametersEx(1, &comment)==FAILURE)) {
+ if (argc > 1 || (argc == 1 && zend_get_parameters_ex(1, &comment)==FAILURE)) {
WRONG_PARAM_COUNT;
}
char *buf;
wddx_packet *packet = NULL;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &packet_id)==FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &packet_id)==FAILURE) {
WRONG_PARAM_COUNT;
}
/* Allocate arguments array and get the arguments, checking for errors. */
args = (zval ***)emalloc(argc * sizeof(zval **));
- if (getParametersArrayEx(argc, args) == FAILURE) {
+ if (zend_get_parameters_array_ex(argc, args) == FAILURE) {
efree(args);
WRONG_PARAM_COUNT;
}
{
zval **packet;
- if (ARG_COUNT(ht)!=1 || getParametersEx(1, &packet) == FAILURE) {
+ if (ARG_COUNT(ht)!=1 || zend_get_parameters_ex(1, &packet) == FAILURE) {
WRONG_PARAM_COUNT;
}
argc = ARG_COUNT(ht);
- if (argc > 1 || getParametersEx(argc, &encodingArg) == FAILURE) {
+ if (argc > 1 || zend_get_parameters_ex(argc, &encodingArg) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **pind, **mythis;
if (ARG_COUNT(ht) != 2 ||
- getParametersEx(2, &pind, &mythis) == FAILURE) {
+ zend_get_parameters_ex(2, &pind, &mythis) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **pind, **shdl, **ehdl;
if (ARG_COUNT(ht) != 3 ||
- getParametersEx(3, &pind, &shdl, &ehdl) == FAILURE) {
+ zend_get_parameters_ex(3, &pind, &shdl, &ehdl) == FAILURE) {
WRONG_PARAM_COUNT;
}
xml_parser *parser;
zval **pind, **hdl;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &pind, &hdl) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &pind, &hdl) == FAILURE) {
WRONG_PARAM_COUNT;
}
xml_parser *parser;
zval **pind, **hdl;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &pind, &hdl) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &pind, &hdl) == FAILURE) {
WRONG_PARAM_COUNT;
}
xml_parser *parser;
zval **pind, **hdl;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &pind, &hdl) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &pind, &hdl) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
xml_parser *parser;
zval **pind, **hdl;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &pind, &hdl) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &pind, &hdl) == FAILURE) {
WRONG_PARAM_COUNT;
}
xml_parser *parser;
zval **pind, **hdl;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &pind, &hdl) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &pind, &hdl) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
xml_parser *parser;
zval **pind, **hdl;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &pind, &hdl) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &pind, &hdl) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
int argc, isFinal, ret;
argc = ARG_COUNT(ht);
- if (argc < 2 || argc > 3 || getParametersEx(argc, &pind, &data, &final) == FAILURE) {
+ if (argc < 2 || argc > 3 || zend_get_parameters_ex(argc, &pind, &data, &final) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
int argc, ret;
argc = ARG_COUNT(ht);
- if (getParametersEx(4, &pind, &data, &xdata,&info) == SUCCESS) {
+ if (zend_get_parameters_ex(4, &pind, &data, &xdata,&info) == SUCCESS) {
if (!ParameterPassedByReference(ht, 4)) {
php_error(E_WARNING, "Array to be filled with values must be passed by reference.");
RETURN_FALSE;
}
zval_dtor(*info);
array_init(*info);
- } else if (getParametersEx(3, &pind, &data, &xdata) == FAILURE) {
+ } else if (zend_get_parameters_ex(3, &pind, &data, &xdata) == FAILURE) {
WRONG_PARAM_COUNT;
}
xml_parser *parser;
zval **pind;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &pind) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &pind) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
zval **code;
char *str;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &code) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &code) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(code);
xml_parser *parser;
zval **pind;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &pind) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &pind) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
xml_parser *parser;
zval **pind;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &pind) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &pind) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
xml_parser *parser;
zval **pind;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &pind) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &pind) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
zval **pind;
xml_parser *parser;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &pind) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &pind) == FAILURE) {
WRONG_PARAM_COUNT;
}
zval **pind, **opt, **val;
char thisfunc[] = "xml_parser_set_option";
- if (ARG_COUNT(ht) != 3 || getParametersEx(3, &pind, &opt, &val) == FAILURE) {
+ if (ARG_COUNT(ht) != 3 || zend_get_parameters_ex(3, &pind, &opt, &val) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
zval **pind, **opt;
char thisfunc[] = "xml_parser_get_option";
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &pind, &opt) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &pind, &opt) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(parser,xml_parser *, pind, -1, "XML Parser", le_xml_parser);
XML_Char *encoded;
int len;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
XML_Char *decoded;
int len;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_string_ex(arg);
int outval;
#endif
- if((ARG_COUNT(ht) != 2) || getParametersEx(2,&domain,&map) == FAILURE) {
+ if((ARG_COUNT(ht) != 2) || zend_get_parameters_ex(2,&domain,&map) == FAILURE) {
WRONG_PARAM_COUNT;
}
pval **domain, **map;
char *outname;
- if((ARG_COUNT(ht) != 2) || getParametersEx(2,&domain,&map) == FAILURE) {
+ if((ARG_COUNT(ht) != 2) || zend_get_parameters_ex(2,&domain,&map) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *outval;
int outvallen;
- if((ARG_COUNT(ht) != 3) || getParametersEx(3,&domain,&map,&key) == FAILURE) {
+ if((ARG_COUNT(ht) != 3) || zend_get_parameters_ex(3,&domain,&map,&key) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *outval, *outkey;
int outvallen, outkeylen;
- if((ARG_COUNT(ht) != 2) || getParametersEx(2,&domain,&map) == FAILURE) {
+ if((ARG_COUNT(ht) != 2) || zend_get_parameters_ex(2,&domain,&map) == FAILURE) {
WRONG_PARAM_COUNT;
}
char *outval, *outkey;
int outvallen, outkeylen;
- if((ARG_COUNT(ht) != 3) || getParametersEx(3,&domain,&map,&key) == FAILURE) {
+ if((ARG_COUNT(ht) != 3) || zend_get_parameters_ex(3,&domain,&map,&key) == FAILURE) {
WRONG_PARAM_COUNT;
}
/* check args */
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1,&filename) == FAILURE) {
+ if (zend_get_parameters_ex(1,&filename) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 2:
- if (getParametersEx(2,&filename,&arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2,&filename,&arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);
switch(ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2,&arg1,&arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2,&arg1,&arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 3:
- if (getParametersEx(3,&arg1,&arg2,&arg3) == FAILURE) {
+ if (zend_get_parameters_ex(3,&arg1,&arg2,&arg3) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg3);
pval **arg1;
gzFile *zp;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(zp, gzFile *, arg1, -1, "Zlib file", le_zp);
pval **arg1;
gzFile *zp;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
ZEND_FETCH_RESOURCE(zp, gzFile *, arg1, -1, "Zlib file", le_zp);
char *buf;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);
int c;
char *buf;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
switch(ARG_COUNT(ht)) {
case 2:
- if(getParametersEx(2, &fd, &bytes) == FAILURE) {
+ if(zend_get_parameters_ex(2, &fd, &bytes) == FAILURE) {
RETURN_FALSE;
}
break;
case 3:
- if(getParametersEx(3, &fd, &bytes, &allow) == FAILURE) {
+ if(zend_get_parameters_ex(3, &fd, &bytes, &allow) == FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(allow);
switch (ARG_COUNT(ht)) {
case 2:
- if (getParametersEx(2, &arg1, &arg2)==FAILURE) {
+ if (zend_get_parameters_ex(2, &arg1, &arg2)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(arg2);
num_bytes = (*arg2)->value.str.len;
break;
case 3:
- if (getParametersEx(3, &arg1, &arg2, &arg3)==FAILURE) {
+ if (zend_get_parameters_ex(3, &arg1, &arg2, &arg3)==FAILURE) {
RETURN_FALSE;
}
convert_to_string_ex(arg2);
pval **arg1;
gzFile *zp;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
long pos;
gzFile *zp;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
int ret;
gzFile *zp;
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);
/* check args */
switch (ARG_COUNT(ht)) {
case 1:
- if (getParametersEx(1,&arg1) == FAILURE) {
+ if (zend_get_parameters_ex(1,&arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;
case 2:
- if (getParametersEx(2,&arg1,&arg2) == FAILURE) {
+ if (zend_get_parameters_ex(2,&arg1,&arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);
char buf[8192];
int size, b;
- if (ARG_COUNT(ht) != 1 || getParametersEx(1, &arg1) == FAILURE) {
+ if (ARG_COUNT(ht) != 1 || zend_get_parameters_ex(1, &arg1) == FAILURE) {
WRONG_PARAM_COUNT;
}
int len;
PLS_FETCH();
- if (ARG_COUNT(ht) != 2 || getParametersEx(2, &arg1, &arg2) == FAILURE) {
+ if (ARG_COUNT(ht) != 2 || zend_get_parameters_ex(2, &arg1, &arg2) == FAILURE) {
WRONG_PARAM_COUNT;
}
convert_to_long_ex(arg2);