]> granicus.if.org Git - php/commitdiff
Fixed some 64bit and other zend_parse_parameters bugs
authorStefan Esser <sesser@php.net>
Sat, 19 Jun 2004 15:09:47 +0000 (15:09 +0000)
committerStefan Esser <sesser@php.net>
Sat, 19 Jun 2004 15:09:47 +0000 (15:09 +0000)
ext/domxml/php_domxml.c
ext/ncurses/ncurses_functions.c
ext/w32api/w32api.c

index b52aa43b488db6efb6a2d7206033271c6c108f6c..c5d830b8b66d41d43422df02484356735a6d73c4 100644 (file)
@@ -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;
index 6b74fadaf0cd7fa70cfb90d9d78d0232d8722c27..71176f4fc9ec0d081d299d7a3746af3565b0a292 100644 (file)
@@ -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();
index 4b3448cdd5cebfe7336088278983e11536267fc5..4945ef10dc0a4fc6ea1026fde3d4210d7c3988a3 100644 (file)
@@ -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)
        {