{"action":"created","issue":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/116","repository_url":"https://api.github.com/repos/phpstan/phpstan","labels_url":"https://api.github.com/repos/phpstan/phpstan/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/phpstan/phpstan/issues/116/comments","events_url":"https://api.github.com/repos/phpstan/phpstan/issues/116/events","html_url":"https://github.com/phpstan/phpstan/issues/116","id":204124919,"number":116,"title":"Memory limit issue","user":{"login":"thekabal","id":2637045,"avatar_url":"https://avatars.githubusercontent.com/u/2637045?v=3","gravatar_id":"","url":"https://api.github.com/users/thekabal","html_url":"https://github.com/thekabal","followers_url":"https://api.github.com/users/thekabal/followers","following_url":"https://api.github.com/users/thekabal/following{/other_user}","gists_url":"https://api.github.com/users/thekabal/gists{/gist_id}","starred_url":"https://api.github.com/users/thekabal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thekabal/subscriptions","organizations_url":"https://api.github.com/users/thekabal/orgs","repos_url":"https://api.github.com/users/thekabal/repos","events_url":"https://api.github.com/users/thekabal/events{/privacy}","received_events_url":"https://api.github.com/users/thekabal/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-30T20:47:00Z","updated_at":"2017-01-30T20:54:30Z","closed_at":"2017-01-30T20:54:30Z","body":"Much like https://github.com/phpstan/phpstan/issues/24 , I am unable to run phpstan against my full project. I have php 7.1, on Ubuntu 16, have memory_limit set to -1 (unlimited), and have attempted to override the setting as recommended by phpstan:\r\n\r\n$ php -d memory_limit=3G vendor/bin/phpstan --level=0 -vvv analyse .\r\n\r\n ! [NOTE] PHPStan crashed in the previous run probably because of excessive memory consumption.                         \r\n !        It consumed around 354 MB of memory.                                                                          \r\n !                                                                                                                      \r\n !        To avoid this issue, increase the memory_limit directive in your php.ini file here:                           \r\n !        /etc/php/7.1/cli/php.ini                                                                                      \r\n !                                                                                                                      \r\n !        If you can't or don't want to change the system-wide memory limit, run PHPStan like this:                     \r\n !        php -d memory_limit=XX vendor/bin/phpstan --level=0 -vvv analyse .                                            \r\n\r\n  253/4117 [▓░░░░░░░░░░░░░░░░░░░░░░░░░░░]   6%  1 sec/16 secs 68.0 MiBPHP Notice:  Use of undefined constant ADODB_ASSOC_CASE - assumed 'ADODB_ASSOC_CASE' in /var/www/html/tki/vendor/phpstan/phpstan/src/Reflection/Php/PhpParameterReflection.php on line 41\r\nPHP Notice:  Use of undefined constant ADODB_ASSOC_CASE - assumed 'ADODB_ASSOC_CASE' in /var/www/html/tki/vendor/phpstan/phpstan/src/Reflection/Php/PhpParameterReflection.php on line 41\r\n  877/4117 [▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░]  21% 22 secs/1 min  368.0 MiBPHP Fatal error:  Interface 'Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface' not found in /var/www/html/tki/vendor/symfony/dependency-injection/ExpressionLanguageProvider.php on line 25\r\n\r\n$ php -v\r\nPHP 7.1.1-1+deb.sury.org~xenial+1 (cli) (built: Jan 20 2017 09:20:20) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies\r\n    with Zend OPcache v7.1.1-1+deb.sury.org~xenial+1, Copyright (c) 1999-2017, by Zend Technologies\r\n\r\n$ more /etc/*-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=16.04\r\nDISTRIB_CODENAME=xenial\r\nDISTRIB_DESCRIPTION=\"Ubuntu 16.04.1 LTS\"\r\n\r\n$ grep -i \"memory_limit\" /etc/php/7.1/cli/php.ini\r\nmemory_limit = -1\r\n\r\nThe repo for my project is here: https://github.com/thekabal/tki/ (In case you'd like to try to duplicate the issue).\r\n\r\nPlease note, my project is *very* messy, with lots of legacy code that began in pre-PHP4 days. I've modernized much of it, but it would not surprise me if some of the code triggers interesting corner cases for phpstan."},"comment":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/comments/276187313","html_url":"https://github.com/phpstan/phpstan/issues/116#issuecomment-276187313","issue_url":"https://api.github.com/repos/phpstan/phpstan/issues/116","id":276187313,"user":{"login":"ondrejmirtes","id":104888,"avatar_url":"https://avatars.githubusercontent.com/u/104888?v=3","gravatar_id":"","url":"https://api.github.com/users/ondrejmirtes","html_url":"https://github.com/ondrejmirtes","followers_url":"https://api.github.com/users/ondrejmirtes/followers","following_url":"https://api.github.com/users/ondrejmirtes/following{/other_user}","gists_url":"https://api.github.com/users/ondrejmirtes/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejmirtes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejmirtes/subscriptions","organizations_url":"https://api.github.com/users/ondrejmirtes/orgs","repos_url":"https://api.github.com/users/ondrejmirtes/repos","events_url":"https://api.github.com/users/ondrejmirtes/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejmirtes/received_events","type":"User","site_admin":false},"created_at":"2017-01-30T20:54:30Z","updated_at":"2017-01-30T20:54:30Z","body":"This is not a memory limit issue. PHPStan only guesses that it crashed unexpectedly due to a memory limit issue, but the real error is this:\r\n\r\n```\r\nPHP Notice: Use of undefined constant ADODB_ASSOC_CASE - assumed 'ADODB_ASSOC_CASE'\r\n\r\nPHP Fatal error: Interface 'Symfony\\Component\\ExpressionLanguage\\ExpressionFunctionProviderInterface' not found \r\n```\r\n\r\nSo you should fix autoloading or fix the class that implements a nonexistent interface..."}}
{"actor":{"display_login":"ondrejmirtes"}}