From: Jaroslaw Kolakowski Date: Mon, 4 Feb 2002 21:07:39 +0000 (+0000) Subject: Fixed compile error X-Git-Tag: php-4.2.0RC1~425 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=176a426b2eb24e9408f9dae5a40b414ea51c5bff;p=php Fixed compile error --- diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index c26131162d..a4f96149ff 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -3469,10 +3469,10 @@ static char *php_domxslt_string_to_xpathexpr(const char *str) { const xmlChar *string = (const xmlChar *)str; - TSRMLS_FETCH(); - xmlChar *value; + TSRMLS_FETCH(); + if (xmlStrchr(string, '"')) { if (xmlStrchr(string, '\'')) { php_error(E_WARNING, "Cannot create XPath expression (string contains both quote and double-quotes) in %s",