libxml_disable_entity_loader
(PHP 5 >= 5.2.11, PHP 7, PHP 8)
libxml_disable_entity_loader — Disable the ability to load external entities
警告
 本函式已自 PHP 8.0.0 起被廢棄。強烈建議不要依賴本函式。
說明
   libxml_disable_entity_loader(bool 
  $disable = true): bool
   Disable/enable the ability to load external entities.
   Note that disabling the loading of external entities may cause general issues
   with loading XML documents. However, as of libxml 2.9.0 entity substitution
   is disabled by default, so there is no need to disable the loading of external
   entities,
   unless there is the need to resolve internal entity references with LIBXML_NOENT.
   Generally, it is preferable to use libxml_set_external_entity_loader()
   to suppress loading of external entities.
  
參數
返回值
Returns the previous value.
參見
- libxml_use_internal_errors() - Disable libxml errors and allow user to fetch error information as needed
 - libxml_set_external_entity_loader() - Changes the default external entity loader
 - The 
LIBXML_NOENTconstant