Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15312043
D21549.id51295.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21549.id51295.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
@@ -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
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 1:21 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7226023
Default Alt Text
D21549.id51295.diff (1 KB)
Attached To
Mode
D21549: Test if "get_magic_quotes_gpc()" exists before calling it
Attached
Detach File
Event Timeline
Log In to Comment