-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notice: A non well formed numeric value encountered in drush/drush/includes/drush.inc on line 894 #3039
Comments
Could this be backported to Drush 8? |
weitzman
pushed a commit
that referenced
this issue
May 16, 2018
Backported. |
Thanks :) |
Perhaps I'm missing something subtle, but shouldn't the relevant switch options for 'g' & 'm' above be: case 'g': |
@MacGuinness you're right - it is subtle - there's no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
The
drush_memory_limit()
code retrieves the memory limit and transforms it from human form into byte form.The calculation uses the value as retrieves trough the
ini_get('memory_limit')
function. This value contains the human form (containing the byte size in K, M, G). The calculation triggers a notice in PHP 7.xSolution
Remove the order size from the value and use that value to calculate the memory limit.
The text was updated successfully, but these errors were encountered: