]> granicus.if.org Git - php/commitdiff
fix zpp
authorAnatol Belski <ab@php.net>
Thu, 21 Aug 2014 13:32:17 +0000 (15:32 +0200)
committerAnatol Belski <ab@php.net>
Thu, 21 Aug 2014 13:32:17 +0000 (15:32 +0200)
ext/standard/dir.c
ext/standard/syslog.c

index 3e65f72699d3f145a867f91bb3e8dc1a69ce5567..bf79a391cf1498dba17a7feb4b8cdbe1f321c54a 100644 (file)
@@ -430,13 +430,13 @@ PHP_FUNCTION(glob)
 #endif
        char *pattern = NULL;
        int pattern_len;
-       long flags = 0;
+       php_int_t flags = 0;
        glob_t globbuf;
        int n;
        int ret;
        zend_bool basedir_limit = 0;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &pattern, &pattern_len, &flags) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|i", &pattern, &pattern_len, &flags) == FAILURE) {
                return;
        }
 
@@ -553,13 +553,13 @@ PHP_FUNCTION(scandir)
 {
        char *dirn;
        int dirn_len;
-       long flags = 0;
+       php_int_t flags = 0;
        zend_string **namelist;
        int n, i;
        zval *zcontext = NULL;
        php_stream_context *context = NULL;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|lr", &dirn, &dirn_len, &flags, &zcontext) == FAILURE) {
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ir", &dirn, &dirn_len, &flags, &zcontext) == FAILURE) {
                return;
        }
 
index 05c443988e8476f598203cc4f847da3e45b8d295..65dda069d5233202d14c4bc7a8ba62c9e203c8bc 100644 (file)
@@ -135,10 +135,10 @@ PHP_MSHUTDOWN_FUNCTION(syslog)
 PHP_FUNCTION(openlog)
 {
        char *ident;
-       long option, facility;
+       php_int_t option, facility;
        int ident_len;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll", &ident,
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sii", &ident,
                                                          &ident_len, &option, &facility) == FAILURE) {
                return;
        }
@@ -175,11 +175,11 @@ PHP_FUNCTION(closelog)
    Generate a system log message */
 PHP_FUNCTION(syslog)
 {
-       long priority;
+       php_int_t priority;
        char *message;
        int message_len;
 
-       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &priority,
+       if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "is", &priority,
                                                          &message, &message_len) == FAILURE) {
                return;
        }