mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- keep inode creation check
This commit is contained in:
parent
9fb4cd1a91
commit
c8542ceac6
1 changed files with 4 additions and 0 deletions
|
@ -987,6 +987,10 @@ static void php_tidy_create_node(INTERNAL_FUNCTION_PARAMETERS, tidy_base_nodetyp
|
|||
break;
|
||||
}
|
||||
|
||||
if (!inode) {
|
||||
RETURN_NULL();
|
||||
}
|
||||
|
||||
tidy_instanciate(tidy_ce_node, return_value TSRMLS_CC);
|
||||
newobj = (PHPTidyObj *) zend_object_store_get_object(return_value TSRMLS_CC);
|
||||
newobj->type = is_node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue