diff options
| author | Sterling Hughes <sterling@php.net> | 2003-06-28 07:46:03 +0000 |
|---|---|---|
| committer | Sterling Hughes <sterling@php.net> | 2003-06-28 07:46:03 +0000 |
| commit | 3e67c2a63af0002c8c7c6630e4241651a413c401 (patch) | |
| tree | 9e2f2800bce7960d9605001bf43fcaa5932ff9b1 | |
| parent | 58c25fb24a28c055026c983b40c99d2d5ffe74a6 (diff) | |
| download | php-git-3e67c2a63af0002c8c7c6630e4241651a413c401.tar.gz | |
for now we let xml support build with versions older than 2.5.7, as we want
users to actually test this...
| -rw-r--r-- | ext/simplexml/simplexml.c | 6 |
1 files changed, 6 insertions, 0 deletions
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")) { |
