From: Sterling Hughes Date: Sat, 28 Jun 2003 07:46:03 +0000 (+0000) Subject: for now we let xml support build with versions older than 2.5.7, as we want X-Git-Tag: php-5.0.0b1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e67c2a63af0002c8c7c6630e4241651a413c401;p=php for now we let xml support build with versions older than 2.5.7, as we want users to actually test this... --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 19db746844..10f24f7aa0 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -543,6 +543,8 @@ simplexml_ce_xpath_search(INTERNAL_FUNCTION_PARAMETERS) #define SCHEMA_BLOB 1 #define SCHEMA_OBJECT 2 +#ifdef xmlSchemaParserCtxtPtr + /* {{{ simplexml_ce_schema_validate_file() */ static void @@ -590,6 +592,8 @@ simplexml_ce_schema_validate(INTERNAL_FUNCTION_PARAMETERS, int type) } /* }}} */ +#endif + /* {{{ simplexml_ce_register_ns() */ static void @@ -657,10 +661,12 @@ sxe_call_method(char *method, INTERNAL_FUNCTION_PARAMETERS) { 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")) {