Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15392473
D21701.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
732 B
Referenced Files
None
Subscribers
None
D21701.diff
View Options
diff --git a/support/startup/PhabricatorStartup.php b/support/startup/PhabricatorStartup.php
--- a/support/startup/PhabricatorStartup.php
+++ b/support/startup/PhabricatorStartup.php
@@ -392,8 +392,11 @@
ini_set('memory_limit', -1);
// If we have libxml, disable the incredibly dangerous entity loader.
+ // PHP 8 deprecates this function and disables this by default; remove once
+ // PHP 7 is no longer supported or a future version has removed the function
+ // entirely.
if (function_exists('libxml_disable_entity_loader')) {
- libxml_disable_entity_loader(true);
+ @libxml_disable_entity_loader(true);
}
// See T13060. If the locale for this process (the parent process) is not
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 16, 3:24 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7705267
Default Alt Text
D21701.diff (732 B)
Attached To
Mode
D21701: Suppress PHP 8 deprecation warning in startup
Attached
Detach File
Event Timeline
Log In to Comment