Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F19540250
D21497.id51163.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
497 B
Referenced Files
None
Subscribers
None
D21497.id51163.diff
View Options
diff --git a/support/init/init-script.php b/support/init/init-script.php
--- a/support/init/init-script.php
+++ b/support/init/init-script.php
@@ -94,7 +94,8 @@
)));
// Disable the insanely dangerous XML entity loader by default.
- if (function_exists('libxml_disable_entity_loader')) {
+ // PHP 8 deprecates this function and disables this by default.
+ if (function_exists('libxml_disable_entity_loader') && \PHP_VERSION_ID < 80000) {
libxml_disable_entity_loader(true);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jan 22 2026, 10:20 PM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
11411396
Default Alt Text
D21497.id51163.diff (497 B)
Attached To
Mode
D21497: Suppress PHP 8 deprecation warning in __arcanist_init_script__
Attached
Detach File
Event Timeline
Log In to Comment