{"action":"opened","issue":{"url":"https://api.github.com/repos/eviweb/composer-wrapper/issues/9","labels_url":"https://api.github.com/repos/eviweb/composer-wrapper/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/eviweb/composer-wrapper/issues/9/comments","events_url":"https://api.github.com/repos/eviweb/composer-wrapper/issues/9/events","html_url":"https://github.com/eviweb/composer-wrapper/issues/9","id":110891023,"number":9,"title":"PHP runs out of memory","user":{"login":"XedinUnknown","id":1428973,"avatar_url":"https://avatars.githubusercontent.com/u/1428973?v=3","gravatar_id":"","url":"https://api.github.com/users/XedinUnknown","html_url":"https://github.com/XedinUnknown","followers_url":"https://api.github.com/users/XedinUnknown/followers","following_url":"https://api.github.com/users/XedinUnknown/following{/other_user}","gists_url":"https://api.github.com/users/XedinUnknown/gists{/gist_id}","starred_url":"https://api.github.com/users/XedinUnknown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XedinUnknown/subscriptions","organizations_url":"https://api.github.com/users/XedinUnknown/orgs","repos_url":"https://api.github.com/users/XedinUnknown/repos","events_url":"https://api.github.com/users/XedinUnknown/events{/privacy}","received_events_url":"https://api.github.com/users/XedinUnknown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-12T00:12:48Z","updated_at":"2015-10-12T00:12:48Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using your class in my PHP script to make sure Composer is installed, and also to run CLI commands on it. However, when I run `composer update` (`$wrapper->run('update', $output)`), my script runs out of memory:\r\n\r\n```\r\nFatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 291 bytes) in phar://path/to/my/script/composer.phar/vendor/composer/semver/src/VersionParser.php on line <b>403</b><br />\r\n```\r\n\r\nSurely, I could simply increase the PHP memory limit. However, what I can't understand is this: why is **my** script running out of memory? CLI commands are surely run on a different thread than my webpage. The worst case scenario would be the `$output` containing the PHP error text, and my page continuing to load.\r\n\r\nCould you look into this, or at least provide some advice please?"}}