mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fix 1st case of #9893. 2nd case was already fixed in previous commit.
This commit is contained in:
parent
dc9769ea96
commit
5d451c9885
1 changed files with 6 additions and 0 deletions
|
@ -2559,6 +2559,12 @@ static void php_xpathptr_new_context(INTERNAL_FUNCTION_PARAMETERS, int mode)
|
|||
int ret;
|
||||
|
||||
id = getThis();
|
||||
|
||||
if (!id) {
|
||||
php_error(E_ERROR, "Invalid object");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
docp = php_dom_get_object(id, le_domxmldocp, 0 TSRMLS_CC);
|
||||
|
||||
#if defined(LIBXML_XPTR_ENABLED)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue