mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00: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 #70715 (Segmentation fault inside soap client). (Laruence)
|
||||||
. Fixed bug #70709 (SOAP Client generates Segfault). (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
|
15 Oct 2015, PHP 7.0.0 RC 5
|
||||||
|
|
||||||
- Core:
|
- Core:
|
||||||
|
@ -351,7 +351,7 @@ static void xsl_ext_function_php(xmlXPathParserContextPtr ctxt, int nargs, int t
|
|||||||
nodep = dom_object_get_node(obj);
|
nodep = dom_object_get_node(obj);
|
||||||
valuePush(ctxt, xmlXPathNewNodeSet(nodep));
|
valuePush(ctxt, xmlXPathNewNodeSet(nodep));
|
||||||
} else if (Z_TYPE(retval) == IS_TRUE || Z_TYPE(retval) == IS_FALSE) {
|
} 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) {
|
} else if (Z_TYPE(retval) == IS_OBJECT) {
|
||||||
php_error_docref(NULL, E_WARNING, "A PHP Object cannot be converted to a XPath-string");
|
php_error_docref(NULL, E_WARNING, "A PHP Object cannot be converted to a XPath-string");
|
||||||
valuePush(ctxt, xmlXPathNewString((const xmlChar *) ""));
|
valuePush(ctxt, xmlXPathNewString((const xmlChar *) ""));
|
||||||
|
Loading…
Reference in New Issue
Block a user