cvs: php4 /ext/xslt sablot.c
| From: | Sterling Hughes | Date: | Sat, 23 Mar 2002 23:37:16 +0000 |
| Subject: | cvs: php4 /ext/xslt sablot.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-10629@lists.php.net to get a copy of this message | ||
sterling Sat Mar 23 18:37:16 2002 EDT
Modified files:
/php4/ext/xslt sablot.c
Log:
make key identifiers case sensitive
Index: php4/ext/xslt/sablot.c
diff -u php4/ext/xslt/sablot.c:1.35 php4/ext/xslt/sablot.c:1.36
--- php4/ext/xslt/sablot.c:1.35 Thu Mar 21 20:10:31 2002
+++ php4/ext/xslt/sablot.c Sat Mar 23 18:37:16 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: sablot.c,v 1.35 2002/03/22 01:10:31 hholzgra Exp $ */
+/* $Id: sablot.c,v 1.36 2002/03/23 23:37:16 sterling Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -240,39 +240,39 @@
}
/* Document handlers (document start, document end) */
- if (strcasecmp(string_key, "document") == 0) {
+ if (!strcmp(string_key, "document")) {
SEPARATE_ZVAL(handler);
register_sax_handler_pair(&XSLT_SAX(handle).doc_start,
&XSLT_SAX(handle).doc_end,
handler);
}
/* Element handlers, start of an element, and end of an element */
- else if (strcasecmp(string_key, "element") == 0) {
+ else if (!strcmp(string_key, "element")) {
SEPARATE_ZVAL(handler);
register_sax_handler_pair(&XSLT_SAX(handle).element_start,
&XSLT_SAX(handle).element_end,
handler);
}
/* Namespace handlers, start of a namespace, end of a namespace */
- else if (strcasecmp(string_key, "namespace") == 0) {
+ else if (!strcmp(string_key, "namespace")) {
SEPARATE_ZVAL(handler);
register_sax_handler_pair(&XSLT_SAX(handle).namespace_start,
&XSLT_SAX(handle).namespace_end,
handler);
}
/* Comment handlers, called when a comment is reached */
- else if (strcasecmp(string_key, "comment") == 0) {
+ else if (!strcmp(string_key, "comment")) {
XSLT_SAX(handle).comment = *handler;
zval_add_ref(&XSLT_SAX(handle).comment);
}
/* Processing instructions handler called when processing instructions
(<? ?>) */
- else if (strcasecmp(string_key, "pi") == 0) {
+ else if (!strcmp(string_key, "pi")) {
XSLT_SAX(handle).pi = *handler;
zval_add_ref(&XSLT_SAX(handle).pi);
}
/* Character handler, called when data is found */
- else if (strcasecmp(string_key, "character") == 0) {
+ else if (!strcmp(string_key, "character")) {
XSLT_SAX(handle).characters = *handler;
zval_add_ref(&XSLT_SAX(handle).characters);
}
@@ -324,23 +324,23 @@
}
/* Open the URI and return the whole string */
- if (strcasecmp(string_key, "get_all") == 0) {
+ if (!strcmp(string_key, "get_all")) {
assign_handle = &XSLT_SCHEME(handle).get_all;
}
/* Open the URI and return a handle */
- else if (strcasecmp(string_key, "open") == 0) {
+ else if (!strcmp(string_key, "open")) {
assign_handle = &XSLT_SCHEME(handle).open;
}
/* Retrieve data from the URI */
- else if (strcasecmp(string_key, "get") == 0) {
+ else if (!strcmp(string_key, "get")) {
assign_handle = &XSLT_SCHEME(handle).get;
}
/* Save data to the URI */
- else if (strcasecmp(string_key, "put") == 0) {
+ else if (!strcmp(string_key, "put")) {
assign_handle = &XSLT_SCHEME(handle).put;
}
/* Close the URI */
- else if (strcasecmp(string_key, "close") == 0) {
+ else if (!strcmp(string_key, "close")) {
assign_handle = &XSLT_SCHEME(handle).close;
}
/* Invalid handler name */