Re: cvs: php-src(PHP_4_4) /sapi/apache mod_php4.c
| From: | Marcus Boerger | Date: | Sat, 13 May 2006 22:23:38 +0000 |
| Subject: | Re: cvs: php-src(PHP_4_4) /sapi/apache mod_php4.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-38195@lists.php.net to get a copy of this message | ||
Hello Rasmus,
just out of curiosity, what do you consider in general the better style
follow the signing or use ~0u/~0 in these cases?
best regards
marcus
Saturday, May 13, 2006, 11:42:15 PM, you wrote:
> rasmus Sat May 13 21:42:15 2006 UTC
> Modified files: (Branch: PHP_4_4)
> /php-src/sapi/apache mod_php4.c
> Log:
> ap_get_client_block can return -1, so don't use an unsigned int here
>
>
>
> http://cvs.php.net/viewcvs.cgi/php-src/sapi/apache/mod_php4.c?r1=1.146.2.15.2.2&r2=1.146.2.15.2.3&diff_format=u
> Index: php-src/sapi/apache/mod_php4.c
> diff -u php-src/sapi/apache/mod_php4.c:1.146.2.15.2.2
> php-src/sapi/apache/mod_php4.c:1.146.2.15.2.3
> --- php-src/sapi/apache/mod_php4.c:1.146.2.15.2.2 Sun Apr 2 17:59:33 2006
> +++ php-src/sapi/apache/mod_php4.c Sat May 13 21:42:14 2006
> @@ -17,7 +17,7 @@
> | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> |
> +----------------------------------------------------------------------+
> */
> -/* $Id: mod_php4.c,v 1.146.2.15.2.2 2006/04/02 17:59:33 iliaa Exp $ */
> +/* $Id: mod_php4.c,v 1.146.2.15.2.3 2006/05/13 21:42:14 rasmus Exp $ */
>
> #include "php_apache_http.h"
> #include "http_conf_globals.h"
> @@ -126,7 +126,7 @@
> */
> static int sapi_apache_read_post(char *buffer, uint count_bytes TSRMLS_DC)
> {
> - uint total_read_bytes=0, read_bytes;
> + int total_read_bytes=0, read_bytes;
> request_rec *r = (request_rec *) SG(server_context);
> void (*handler)(int);
>
Best regards,
Marcus