cvs: php4(PHP_4_0_5) /ext/standard string.c
| From: | Thies C. Arntzen | Date: | Fri, 13 Apr 2001 18:23:08 +0000 |
| Subject: | cvs: php4(PHP_4_0_5) /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5107@lists.php.net to get a copy of this message | ||
thies Fri Apr 13 11:23:08 2001 EDT
Modified files: (Branch: PHP_4_0_5)
/php4/ext/standard string.c
Log:
@- Fixed crash in pathinfo()
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.193 php4/ext/standard/string.c:1.193.2.1
--- php4/ext/standard/string.c:1.193 Mon Feb 26 07:49:38 2001
+++ php4/ext/standard/string.c Fri Apr 13 11:23:07 2001
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.193 2001/02/26 15:49:38 andi Exp $ */
+/* $Id: string.c,v 1.193.2.1 2001/04/13 18:23:07 thies Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -902,7 +902,7 @@
int idx;
p = strrchr(Z_STRVAL_PP(path), '.');
- if (*p) {
+ if (p) {
idx = p - Z_STRVAL_PP(path);
add_assoc_stringl(tmp, "extension", Z_STRVAL_PP(path) + idx + 1, len - idx - 1, 1);
}