helly Sat Feb 22 15:49:07 2003 EDT
Modified files:
/php4/ext/dba/libinifile inifile.c
Log:
INI files are case insensitive
Index: php4/ext/dba/libinifile/inifile.c
diff -u php4/ext/dba/libinifile/inifile.c:1.2 php4/ext/dba/libinifile/inifile.c:1.3
--- php4/ext/dba/libinifile/inifile.c:1.2 Sat Feb 22 12:37:27 2003
+++ php4/ext/dba/libinifile/inifile.c Sat Feb 22 15:49:07 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: inifile.c,v 1.2 2003/02/22 17:37:27 helly Exp $ */
+/* $Id: inifile.c,v 1.3 2003/02/22 20:49:07 helly Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -44,7 +44,7 @@
/* {{{ inifile_version */
char *inifile_version()
{
- return "1.0, $Revision: 1.2 $";
+ return "1.0, $Revision: 1.3 $";
}
/* }}} */
@@ -235,8 +235,8 @@
{
assert(k1->group && k1->name && k2->group && k2->name);
- if (!strcmp(k1->group, k2->group)) {
- if (!strcmp(k1->name, k2->name)) {
+ if (!strcasecmp(k1->group, k2->group)) {
+ if (!strcasecmp(k1->name, k2->name)) {
return 0;
} else {
return 1;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php