@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Suppress PHP 8 deprecation warning in startup

Summary: Ref T13588. See D21497. As of PHP 8, the XML entity loader is disabled by default and the `libxml_disable_entity_loader` function is deprecated. Thus suppress the deprecation warning for now; we could skip the function call, but this is safer.

Test Plan:
* Still works with PHP 7.
* No more deprecation message with PHP 8.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T13588

Differential Revision: https://secure.phabricator.com/D21701

+4 -1
+4 -1
support/startup/PhabricatorStartup.php
··· 392 392 ini_set('memory_limit', -1); 393 393 394 394 // If we have libxml, disable the incredibly dangerous entity loader. 395 + // PHP 8 deprecates this function and disables this by default; remove once 396 + // PHP 7 is no longer supported or a future version has removed the function 397 + // entirely. 395 398 if (function_exists('libxml_disable_entity_loader')) { 396 - libxml_disable_entity_loader(true); 399 + @libxml_disable_entity_loader(true); 397 400 } 398 401 399 402 // See T13060. If the locale for this process (the parent process) is not