You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Invalid argument supplied for foreach() by running iniscan show #100
I get multiple PHP warnings if I run iniscan show. I use this php.ini and PHP 7.0 with iniscan version 3.6.4.
Current PHP.ini settings from /usr/local/etc/php/php.ini
##########
:: date.timezone
Warning: Invalid argument supplied for foreach() in /app/vendor/psecio/iniscan/src/Psecio/Iniscan/Command/ShowCommand.php on line 53
-----------------
:: memory_limit
Warning: Invalid argument supplied for foreach() in /app/vendor/psecio/iniscan/src/Psecio/Iniscan/Command/ShowCommand.php on line 53
-----------------
:: error_reporting
Warning: Invalid argument supplied for foreach() in /app/vendor/psecio/iniscan/src/Psecio/Iniscan/Command/ShowCommand.php on line 53
-----------------
:: display_errors
Warning: Invalid argument supplied for foreach() in /app/vendor/psecio/iniscan/src/Psecio/Iniscan/Command/ShowCommand.php on line 53
-----------------
Would it be possible to see an example of how your php.ini file is set up? That section is relying on the result of the parse_ini_file and assuming a certain default structure to the results. I'm wondering if your configuration setup is tripping it up.
Activity
enygma commentedon Apr 20, 2016
Would it be possible to see an example of how your
php.inifile is set up? That section is relying on the result of theparse_ini_fileand assuming a certain default structure to the results. I'm wondering if your configuration setup is tripping it up.sandrokeil commentedon Apr 21, 2016
The
$inivariable contains the following array for the config above.A solution would be to add a is_array() check here.
emilva commentedon Oct 13, 2016
Cannot reproduce this using
PHP 5.5.36and the ini-file provided in the issue descriptionspelcaster commentedon Oct 17, 2017
Follow #109