Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F466868
PhabricatorExtensionsSetupCheck.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorExtensionsSetupCheck.php
View Options
<?php
final
class
PhabricatorExtensionsSetupCheck
extends
PhabricatorSetupCheck
{
public
function
getDefaultGroup
()
{
return
self
::
GROUP_PHP
;
}
public
function
isPreflightCheck
()
{
return
true
;
}
protected
function
executeChecks
()
{
// TODO: Make 'mbstring' and 'iconv' soft requirements.
$required
=
array
(
'hash'
,
'json'
,
'openssl'
,
'mbstring'
,
'iconv'
,
'ctype'
,
// There is a tiny chance we might not need this, but a significant
// number of applications require it and it's widely available.
'curl'
,
);
$need
=
array
();
foreach
(
$required
as
$extension
)
{
if
(!
extension_loaded
(
$extension
))
{
$need
[]
=
$extension
;
}
}
if
(!
extension_loaded
(
'mysqli'
)
&&
!
extension_loaded
(
'mysql'
))
{
$need
[]
=
'mysqli or mysql'
;
}
if
(!
$need
)
{
return
;
}
$message
=
pht
(
'Required PHP extensions are not installed.'
);
$issue
=
$this
->
newIssue
(
'php.extensions'
)
->
setIsFatal
(
true
)
->
setName
(
pht
(
'Missing Required Extensions'
))
->
setMessage
(
$message
);
foreach
(
$need
as
$extension
)
{
$issue
->
addPHPExtension
(
$extension
);
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 1:40 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
79166
Default Alt Text
PhabricatorExtensionsSetupCheck.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment