Re: cvs: php4 /ext/standard string.c
| From: | (Marcus Börger) | Date: | Sat, 09 Nov 2002 10:05:15 +0000 |
| Subject: | Re: cvs: php4 /ext/standard string.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-16058@lists.php.net to get a copy of this message | ||
I do not get those so i do not fix them.
At 05:17 09.11.2002, Maxim Maletsky wrote:
Actually, i was just about to mention one thing - in math.c on line 779 (I think) it warn of an unasigned comparison compilation. I was about to work out a patch and submit it as I got no karma for that part. Why don't you take over it once you're there :) -- Maxim Maletsky maxim@php.net On Thu, 24 Oct 2002 19:11:50 -0000 "Marcus Börger" <marcus.boerger@post.rwth-aachen.de> wrote:helly Thu Oct 24 15:11:50 2002 EDTModified files:/php4/ext/standard string.cLog: fix compiler warning Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.327 php4/ext/standard/string.c:1.328 --- php4/ext/standard/string.c:1.327 Tue Oct 22 14:27:56 2002+++ php4/ext/standard/string.c Thu Oct 24 15:11:49 2002@@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.327 2002/10/22 18:27:56 helly Exp $ */ +/* $Id: string.c,v 1.328 2002/10/24 19:11:49 helly Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -915,6 +915,7 @@case 1: tok = args[0]; break; + default: case 2: str = args[0]; tok = args[1];@@ -1198,7 +1199,7 @@ PHP_FUNCTION(pathinfo) {zval *tmp; - char *path, *ret; + char *path, *ret = NULL; int path_len; int opt = PHP_PATHINFO_ALL;@@ -3182,6 +3183,7 @@if (Z_TYPE_PP(args[1]) == IS_ARRAY) { zend_hash_internal_pointer_reset(Z_ARRVAL_PP(args[1])); + i=0; /* not needed in this case: only kill a compiler warning */ } else { i=1; }-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php