mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
MFH: fix bug #47220 (segfault in dom_document_parser in recovery mode)
This commit is contained in:
parent
51f4e5efcd
commit
cbdb8f6167
1 changed files with 1 additions and 1 deletions
|
@ -1625,7 +1625,7 @@ static xmlDocPtr dom_document_parser(zval *id, int mode, char *source, int optio
|
||||||
EG(error_reporting) = old_error_reporting;
|
EG(error_reporting) = old_error_reporting;
|
||||||
}
|
}
|
||||||
/* If loading from memory, set the base reference uri for the document */
|
/* If loading from memory, set the base reference uri for the document */
|
||||||
if (ret->URL == NULL && ctxt->directory != NULL) {
|
if (ret && ret->URL == NULL && ctxt->directory != NULL) {
|
||||||
ret->URL = xmlStrdup(ctxt->directory);
|
ret->URL = xmlStrdup(ctxt->directory);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue