Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
094e9990
Commit
094e9990
authored
Feb 25, 2009
by
Dries
Browse files
- Patch
#383318
by mr.baileys: incorrect memory shortage warning when memory limit is unlimited.
parent
743c8adc
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/system/system.install
View file @
094e9990
...
...
@@ -65,10 +65,10 @@ function system_requirements($phase) {
$memory_limit
=
ini_get
(
'memory_limit'
);
$requirements
[
'php_memory_limit'
]
=
array
(
'title'
=>
$t
(
'PHP memory limit'
),
'value'
=>
$memory_limit
,
'value'
=>
$memory_limit
==
-
1
?
t
(
'-1 (Unlimited)'
)
:
$memory_limit
,
);
if
(
$memory_limit
&&
parse_size
(
$memory_limit
)
<
parse_size
(
DRUPAL_MINIMUM_PHP_MEMORY_LIMIT
))
{
if
(
$memory_limit
&&
$memory_limit
!=
-
1
&&
parse_size
(
$memory_limit
)
<
parse_size
(
DRUPAL_MINIMUM_PHP_MEMORY_LIMIT
))
{
$description
=
''
;
if
(
$phase
==
'install'
)
{
$description
=
$t
(
'Consider increasing your PHP memory limit to %memory_minimum_limit to help prevent errors in the installation process.'
,
array
(
'%memory_minimum_limit'
=>
DRUPAL_MINIMUM_PHP_MEMORY_LIMIT
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment