phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Add full performance test for issue 5081

Open mvorisek opened this issue 3 years ago • 1 comments

related to https://github.com/phpstan/phpstan/issues/5081

mvorisek avatar Mar 31 '22 07:03 mvorisek

I'll take a look because I'm very nice (and like to debug those things) ;). but please don't expect too much and please be patient. Current state (after already removing many of those lines)

\time php -d xdebug.mode=profile bin/phpstan analyse --xdebug --debug --verbose tests/PHPStan/Analyser/data/bug-5081.php
/Users/herndlm/Development/source/git-forks/phpstan-src/tests/PHPStan/Analyser/data/bug-5081.php
PHP Fatal error:  Allowed memory size of 1073741824 bytes exhausted (tried to allocate 249856 bytes) in /Users/herndlm/Development/source/git-forks/phpstan-src/src/Type/IntersectionType.php on line 229
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 249856 bytes) in /Users/herndlm/Development/source/git-forks/phpstan-src/src/Type/IntersectionType.php on line 229

PHPStan process crashed because it reached configured PHP memory limit: 1G
Increase your memory limit in php.ini or run PHPStan with --memory-limit CLI option.
     1776.03 real      1682.61 user        20.75 sys

tbc later

herndlm avatar Mar 31 '22 08:03 herndlm

The issue has been fixed for some time.

ondrejmirtes avatar Oct 16 '22 10:10 ondrejmirtes