sterling                Sat Jun 28 03:46:03 2003 EDT

  Modified files:              
    /php-src/ext/simplexml      simplexml.c 
  Log:
  for now we let xml support build with versions older than 2.5.7, as we want
  users to actually test this...
  
  
Index: php-src/ext/simplexml/simplexml.c
diff -u php-src/ext/simplexml/simplexml.c:1.42 php-src/ext/simplexml/simplexml.c:1.43
--- php-src/ext/simplexml/simplexml.c:1.42      Wed Jun 25 12:26:32 2003
+++ php-src/ext/simplexml/simplexml.c   Sat Jun 28 03:46:03 2003
@@ -16,7 +16,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: simplexml.c,v 1.42 2003/06/25 16:26:32 sterling Exp $ */
+/* $Id: simplexml.c,v 1.43 2003/06/28 07:46:03 sterling Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -543,6 +543,8 @@
 #define SCHEMA_BLOB 1
 #define SCHEMA_OBJECT 2
 
+#ifdef xmlSchemaParserCtxtPtr
+
 /* {{{ simplexml_ce_schema_validate_file()
  */
 static void
@@ -590,6 +592,8 @@
 }
 /* }}} */
 
+#endif
+
 /* {{{ simplexml_ce_register_ns()
  */
 static void
@@ -657,10 +661,12 @@
 {
        if (!strcmp(method, "xsearch")) {
                simplexml_ce_xpath_search(INTERNAL_FUNCTION_PARAM_PASSTHRU);
+#ifdef xmlSchemaParserCtxtPtr
        } else if (!strcmp(method, "validate_schema_file")) {
                simplexml_ce_schema_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, 
SCHEMA_FILE);    
        } else if (!strcmp(method, "validate_schema_buffer")) {
                simplexml_ce_schema_validate(INTERNAL_FUNCTION_PARAM_PASSTHRU, 
SCHEMA_BLOB);
+#endif
        } else if (!strcmp(method, "register_ns")) {
                simplexml_ce_register_ns(INTERNAL_FUNCTION_PARAM_PASSTHRU);
        } else if (!strcmp(method, "to_xml")) {
@@ -1042,7 +1048,7 @@
 {
        php_info_print_table_start();
        php_info_print_table_header(2, "Simplexml support", "enabled");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.42 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.43 $");
        php_info_print_table_end();
 
 }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to