libxml_disable_entity_loader php8 deprecated
This commit is contained in:
parent
9e1766a4bb
commit
28f2dcb17d
1 changed files with 3 additions and 2 deletions
|
@ -221,12 +221,13 @@ namespace gp\tool{
|
|||
*/
|
||||
|
||||
$internalErrors = libxml_use_internal_errors(true);
|
||||
$disableEntities = libxml_disable_entity_loader(true);
|
||||
/* $disableEntities = libxml_disable_entity_loader(true); php8 deprecated */
|
||||
libxml_clear_errors();
|
||||
/* $doc->loadXML(file_get_contents($filename),$options); */
|
||||
$doc = new \DOMDocument();
|
||||
$doc->loadXML($src_svg, LIBXML_NONET);
|
||||
libxml_use_internal_errors($internalErrors);
|
||||
libxml_disable_entity_loader($disableEntities);
|
||||
|
||||
if( $error = libxml_get_last_error() ){
|
||||
libxml_clear_errors();
|
||||
// msg("SVG processing - LibXML Error: " . $error->message );
|
||||
|
|
Loading…
Reference in a new issue