{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/38490","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38490/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38490/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38490/events","html_url":"https://github.com/Homebrew/homebrew/issues/38490","id":67405413,"number":38490,"title":"PHP Fatal error when trying to install wp-cli tools","user":{"login":"jsalamin","id":2937636,"avatar_url":"https://avatars.githubusercontent.com/u/2937636?v=3","gravatar_id":"","url":"https://api.github.com/users/jsalamin","html_url":"https://github.com/jsalamin","followers_url":"https://api.github.com/users/jsalamin/followers","following_url":"https://api.github.com/users/jsalamin/following{/other_user}","gists_url":"https://api.github.com/users/jsalamin/gists{/gist_id}","starred_url":"https://api.github.com/users/jsalamin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsalamin/subscriptions","organizations_url":"https://api.github.com/users/jsalamin/orgs","repos_url":"https://api.github.com/users/jsalamin/repos","events_url":"https://api.github.com/users/jsalamin/events{/privacy}","received_events_url":"https://api.github.com/users/jsalamin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T17:00:06Z","updated_at":"2015-04-09T17:05:38Z","closed_at":"2015-04-09T17:05:38Z","body":"Here is the situation, I'm trying to install `wp-cli` with Homebrew as following:\r\n\r\n    brew install wp-cli\r\n\r\nBut during the installation process, the following error occurs:\r\n\r\n> **PHP Fatal error**:  Allowed memory size of 262144 bytes exhausted (tried\r\n> to allocate 29889 bytes) in Unknown on line 0\r\n\r\nHomebrew first download the appropriate package:\r\n\r\n    ==> Downloading https://github.com/wp-cli/wp-cli/archive/v0.18.0.tar.gz\r\n\r\nAnd then the process use Composer to proceed the installation:\r\n\r\n    ==> /usr/local/bin/composer install\r\n\r\nThat causes the above `PHP Error` and I haven't find any solution to fix this problem (I followed the instructions described [here][1] but no success).\r\n\r\nI understand the error message and tried to increase the memory limit in the `php.ini` file (I also tried 1G):\r\n\r\n    memory_limit = 512M\r\n\r\nBut without any success even after having restarted the server in order to be sure that my modification was taken into account.\r\n\r\nHere are some information about my configuration:\r\n\r\n    > php -v\r\n    PHP 5.5.23 (cli) (built: Mar 23 2015 01:47:37)\r\n    \r\n    > brew -v\r\n    Homebrew 0.9.5\r\n    \r\n    > composer -v\r\n    Composer version 1.0-dev (f10c71475167a4661225b14560ca0a400d730829) 2015-03-29 14:37:42\r\n    \r\n    > php --ini\r\n    Configuration File (php.ini) Path: /usr/local/etc/php/5.5\r\n    Loaded Configuration File:         /usr/local/etc/php/5.5/php.ini\r\n    Scan for additional .ini files in: /usr/local/etc/php/5.5/conf.d\r\n    Additional .ini files parsed:      /usr/local/etc/php/5.5/conf.d/ext-mcrypt.ini\r\n    \r\nThinking about a memory overload, I also cleaned the cache of Composer with the following command (because error message occurs during the `composer install` process):\r\n\r\n    > composer clearcache\r\n\r\nThat was still useless in my situation, of course every used tools are up-to-date:\r\n\r\n    > brew update\r\n    > brew upgrade\r\n    > composer selfupdate\r\n\r\nI probably missed something simple but I didn't find the cause of my problem.\r\n\r\n  [1]: http://stackoverflow.com/questions/12769982/reference-what-does-this-error-mean-in-php/12770179#12770179"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/91293243","html_url":"https://github.com/Homebrew/homebrew/issues/38490#issuecomment-91293243","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/38490","id":91293243,"user":{"login":"mistydemeo","id":780485,"avatar_url":"https://avatars.githubusercontent.com/u/780485?v=3","gravatar_id":"","url":"https://api.github.com/users/mistydemeo","html_url":"https://github.com/mistydemeo","followers_url":"https://api.github.com/users/mistydemeo/followers","following_url":"https://api.github.com/users/mistydemeo/following{/other_user}","gists_url":"https://api.github.com/users/mistydemeo/gists{/gist_id}","starred_url":"https://api.github.com/users/mistydemeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistydemeo/subscriptions","organizations_url":"https://api.github.com/users/mistydemeo/orgs","repos_url":"https://api.github.com/users/mistydemeo/repos","events_url":"https://api.github.com/users/mistydemeo/events{/privacy}","received_events_url":"https://api.github.com/users/mistydemeo/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T17:05:38Z","updated_at":"2015-04-09T17:05:38Z","body":"Could you report this to [homebrew-php](https://github.com/Homebrew/homebrew-php), please? Thanks!"}}