com php-src: cleanup uneeded cast: sapi/apache2handler/sapi _apache2.c
| From: | Remi Collet | Date: | Tue, 16 Dec 2014 09:06:32 +0000 |
| Subject: | com php-src: cleanup uneeded cast: sapi/apache2handler/sapi _apache2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83733@lists.php.net to get a copy of this message | ||
Commit: 61cb019e20b8af9c3cc5acdcaa925da4bea3e1ec
Author: Remi Collet <remi@php.net> Tue, 16 Dec 2014 10:06:32 +0100
Parents: 5c0e1185738ef7f475a6439ea02922e26d291287
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=61cb019e20b8af9c3cc5acdcaa925da4bea3e1ec
Log:
cleanup uneeded cast
Changed paths:
M sapi/apache2handler/sapi_apache2.c
Diff:
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index fe20030..3b7eaf2 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -276,12 +276,12 @@ php_apache_sapi_register_variables(zval *track_vars_array TSRMLS_DC)
if (!val) {
val = "";
}
- if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), (size_t *)&new_val_len
TSRMLS_CC)) {
+ if (sapi_module.input_filter(PARSE_SERVER, key, &val, strlen(val), &new_val_len
TSRMLS_CC)) {
php_register_variable_safe(key, val, new_val_len, track_vars_array TSRMLS_CC);
}
APR_ARRAY_FOREACH_CLOSE()
- if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri,
strlen(ctx->r->uri), (size_t *)&new_val_len TSRMLS_CC)) {
+ if (sapi_module.input_filter(PARSE_SERVER, "PHP_SELF", &ctx->r->uri,
strlen(ctx->r->uri), &new_val_len TSRMLS_CC)) {
php_register_variable_safe("PHP_SELF", ctx->r->uri, new_val_len, track_vars_array
TSRMLS_CC);
}
}