tony2001 Mon Jul 14 10:51:45 2008 UTC
Modified files:
/php-src/sapi/apache php_apache.c
Log:
use int for length
http://cvs.php.net/viewvc.cgi/php-src/sapi/apache/php_apache.c?r1=1.104&r2=1.105&diff_format=u
Index: php-src/sapi/apache/php_apache.c
diff -u php-src/sapi/apache/php_apache.c:1.104
php-src/sapi/apache/php_apache.c:1.105
--- php-src/sapi/apache/php_apache.c:1.104 Sat Jun 28 10:16:25 2008
+++ php-src/sapi/apache/php_apache.c Mon Jul 14 10:51:45 2008
@@ -17,7 +17,7 @@
| David Sklar <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_apache.c,v 1.104 2008/06/28 10:16:25 indeyets Exp $ */
+/* $Id: php_apache.c,v 1.105 2008/07/14 10:51:45 tony2001 Exp $ */
#include "php_apache_http.h"
@@ -142,7 +142,7 @@
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_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 @@
/* {{{ 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 @@
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_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 @@
PHP_FUNCTION(apache_exec_uri)
{
char *filename;
- long filename_len;
+ int filename_len;
request_rec *rr=NULL;
TSRMLS_FETCH();
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php