thies           Fri Apr 13 11:22:14 2001 EDT

  Modified files:              
    /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.194
--- php4/ext/standard/string.c:1.193    Mon Feb 26 07:49:38 2001
+++ php4/ext/standard/string.c  Fri Apr 13 11:22:13 2001
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: string.c,v 1.193 2001/02/26 15:49:38 andi Exp $ */
+/* $Id: string.c,v 1.194 2001/04/13 18:22:13 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);
                }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to