Page MenuHomePhabricator

D21549.diff
No OneTemporary

D21549.diff

diff --git a/support/startup/PhabricatorStartup.php b/support/startup/PhabricatorStartup.php
--- a/support/startup/PhabricatorStartup.php
+++ b/support/startup/PhabricatorStartup.php
@@ -521,12 +521,18 @@
"'{$required_version}'.");
}
- if (@get_magic_quotes_gpc()) {
- self::didFatal(
- "Your server is configured with PHP 'magic_quotes_gpc' enabled. This ".
- "feature is 'highly discouraged' by PHP's developers and you must ".
- "disable it to run Phabricator. Consult the PHP manual for ".
- "instructions.");
+ if (function_exists('get_magic_quotes_gpc')) {
+ if (@get_magic_quotes_gpc()) {
+ self::didFatal(
+ 'Your server is configured with the PHP language feature '.
+ '"magic_quotes_gpc" enabled.'.
+ "\n\n".
+ 'This feature is "highly discouraged" by PHP\'s developers, and '.
+ 'has been removed entirely in PHP8.'.
+ "\n\n".
+ 'You must disable "magic_quotes_gpc" to run Phabricator. Consult '.
+ 'the PHP manual for instructions.');
+ }
}
if (extension_loaded('apc')) {

File Metadata

Mime Type
text/plain
Expires
Fri, Jun 14, 5:55 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6299998
Default Alt Text
D21549.diff (1 KB)

Event Timeline