From: Stefan Esser Date: Sat, 19 Jun 2004 15:09:47 +0000 (+0000) Subject: Fixed some 64bit and other zend_parse_parameters bugs X-Git-Tag: php-4.3.9RC1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d18951de421ad8de7bbf016e734492aa0edb252;p=php Fixed some 64bit and other zend_parse_parameters bugs --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index b52aa43b48..c5d830b8b6 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -5360,7 +5360,8 @@ PHP_FUNCTION(domxml_xslt_process) xmlDocPtr xmldocp; xmlDocPtr docp; char **params = NULL; - int ret, clone = -1; + int ret; + long clone = -1; char *filename; int filename_len = 0; FILE *f; diff --git a/ext/ncurses/ncurses_functions.c b/ext/ncurses/ncurses_functions.c index 6b74fadaf0..71176f4fc9 100644 --- a/ext/ncurses/ncurses_functions.c +++ b/ext/ncurses/ncurses_functions.c @@ -1421,7 +1421,7 @@ PHP_FUNCTION(ncurses_mvdelch) { long y,x; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lls",&y,&x)==FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll",&y,&x)==FAILURE) { return; } IS_NCURSES_INITIALIZED(); @@ -1436,7 +1436,7 @@ PHP_FUNCTION(ncurses_mvgetch) { long y,x; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lls",&y,&x)==FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll",&y,&x)==FAILURE) { return; } IS_NCURSES_INITIALIZED(); @@ -1450,7 +1450,7 @@ PHP_FUNCTION(ncurses_mvinch) { long y,x; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lls",&y,&x)==FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ll",&y,&x)==FAILURE) { return; } IS_NCURSES_INITIALIZED(); diff --git a/ext/w32api/w32api.c b/ext/w32api/w32api.c index 4b3448cdd5..4945ef10dc 100644 --- a/ext/w32api/w32api.c +++ b/ext/w32api/w32api.c @@ -1509,7 +1509,7 @@ W32API_CLASS_FUNCTION(win32, unregisterfunction) int function_name_len; w32api_func_handle **fh = NULL; - if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", + if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &function_name, &function_name_len) == FAILURE) { @@ -1535,7 +1535,7 @@ W32API_CLASS_FUNCTION(win32, registercallback) int function_definition_len; w32api_func_handle **fh = NULL; - if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", + if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &function_definition, &function_definition_len) == FAILURE) {