]> granicus.if.org Git - php/commitdiff
use int for length
authorAntony Dovgal <tony2001@php.net>
Mon, 14 Jul 2008 10:51:45 +0000 (10:51 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 14 Jul 2008 10:51:45 +0000 (10:51 +0000)
sapi/apache/php_apache.c

index 6208ea622f855d46691f2d50af34fbfb5f2d7fc3..d68e19287515bb1a824733fed170f84c640a07fa 100644 (file)
@@ -142,7 +142,7 @@ PHP_FUNCTION(apache_child_terminate)
 PHP_FUNCTION(apache_note)
 {
        char *note_name, *note_val;
-       long note_name_len, note_val_len;
+       int note_name_len, note_val_len;
        char *old_val;
        int arg_count = ZEND_NUM_ARGS();
 
@@ -309,7 +309,7 @@ PHP_MINFO_FUNCTION(apache)
 PHP_FUNCTION(virtual)
 {
        char *filename;
-       long filename_len;
+       int filename_len;
        request_rec *rr = NULL;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
@@ -350,6 +350,7 @@ PHP_FUNCTION(virtual)
 /* {{{ proto array getallheaders(void)
    Alias for apache_request_headers() */
 /* }}} */
+
 /* {{{ proto array apache_request_headers(void)
    Fetch all HTTP request headers */
 PHP_FUNCTION(apache_request_headers)
@@ -392,7 +393,7 @@ PHP_FUNCTION(apache_response_headers)
    Set an Apache subprocess_env variable */
 PHP_FUNCTION(apache_setenv)
 {
-       long var_len, val_len;
+       int var_len, val_len;
        zend_bool top=0;
        char *var = NULL, *val = NULL;
        request_rec *r = (request_rec *) SG(server_context);
@@ -416,7 +417,7 @@ PHP_FUNCTION(apache_setenv)
 PHP_FUNCTION(apache_lookup_uri)
 {
        char *filename;
-       long filename_len;
+       int filename_len;
        request_rec *rr=NULL;
 
        if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
@@ -493,7 +494,7 @@ This function is most likely a bad idea.  Just playing with it for now.
 PHP_FUNCTION(apache_exec_uri)
 {
        char *filename;
-       long filename_len;
+       int filename_len;
        request_rec *rr=NULL;
        TSRMLS_FETCH();