rrichards Wed Sep 24 08:56:38 2003 EDT
Modified files:
/php-src/ext/dom document.c
Log:
fix preserveWhiteSpace on document load
Index: php-src/ext/dom/document.c
diff -u php-src/ext/dom/document.c:1.26 php-src/ext/dom/document.c:1.27
--- php-src/ext/dom/document.c:1.26 Mon Sep 22 15:11:35 2003
+++ php-src/ext/dom/document.c Wed Sep 24 08:56:37 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: document.c,v 1.26 2003/09/22 19:11:35 rrichards Exp $ */
+/* $Id: document.c,v 1.27 2003/09/24 12:56:37 rrichards Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -26,6 +26,7 @@
#include "php.h"
#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
+#include <libxml/SAX.h>
typedef struct _idsIterator idsIterator;
struct _idsIterator {
@@ -1270,8 +1271,12 @@
ctxt->vctxt.error = php_dom_ctx_error;
ctxt->vctxt.warning = php_dom_ctx_error;
+
if (ctxt->sax != NULL) {
ctxt->sax->error = php_dom_ctx_error;
+ if (ctxt->keepBlanks == 0) {
+ ctxt->sax->ignorableWhitespace = ignorableWhitespace;
+ }
}
xmlParseDocument(ctxt);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php