mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Fixed bug #70678 (PHP7 returns true when false is expected)
Cherry-pick from master.
This commit is contained in:
parent
e3e92e96c1
commit
20a384dfa9
3
NEWS
3
NEWS
@ -10,6 +10,9 @@ PHP NEWS
|
||||
. Fixed bug #70715 (Segmentation fault inside soap client). (Laruence)
|
||||
. Fixed bug #70709 (SOAP Client generates Segfault). (Laruence)
|
||||
|
||||
- XSL:
|
||||
. Fixed bug #70678 (PHP7 returns true when false is expected). (Felipe)
|
||||
|
||||
15 Oct 2015, PHP 7.0.0 RC 5
|
||||
|
||||
- Core:
|
||||
|
@ -351,7 +351,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
|
||||
nodep = dom_object_get_node(obj);
|
||||
valuePush(ctxt, xmlXPathNewNodeSet(nodep));
|
||||
} else if (Z_TYPE(retval) == IS_TRUE || Z_TYPE(retval) == IS_FALSE) {
|
||||
valuePush(ctxt, xmlXPathNewBoolean(Z_LVAL(retval)));
|
||||
valuePush(ctxt, xmlXPathNewBoolean(Z_TYPE(retval) == IS_TRUE));
|
||||
} else if (Z_TYPE(retval) == IS_OBJECT) {
|
||||
php_error_docref(NULL, E_WARNING, "A PHP Object cannot be converted to a XPath-string");
|
||||
valuePush(ctxt, xmlXPathNewString((const xmlChar *) ""));
|
||||
|
Loading…
Reference in New Issue
Block a user