cvs: php4 /ext/standard string.c

From: Date: Fri, 13 Apr 2001 18:22:14 +0000
Subject: cvs: php4 /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5106@lists.php.net to get a copy of this message
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); }

« previous php.cvs (#5106) next »