{"action":"created","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2221","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2221/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2221/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2221/events","html_url":"https://github.com/wp-cli/wp-cli/issues/2221","id":118053900,"number":2221,"title":"Does WP-CLI works in PHP 5.5? Aka. enviroment variables not working","user":{"login":"samuelnasta","id":1779788,"avatar_url":"https://avatars.githubusercontent.com/u/1779788?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelnasta","html_url":"https://github.com/samuelnasta","followers_url":"https://api.github.com/users/samuelnasta/followers","following_url":"https://api.github.com/users/samuelnasta/following{/other_user}","gists_url":"https://api.github.com/users/samuelnasta/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelnasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelnasta/subscriptions","organizations_url":"https://api.github.com/users/samuelnasta/orgs","repos_url":"https://api.github.com/users/samuelnasta/repos","events_url":"https://api.github.com/users/samuelnasta/events{/privacy}","received_events_url":"https://api.github.com/users/samuelnasta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/state:unconfirmed","name":"state:unconfirmed","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-20T14:37:36Z","updated_at":"2015-11-20T16:25:59Z","closed_at":"2015-11-20T16:25:59Z","body":"Scenario\r\nWp-cli downloads the core, creates the wp-config.php, creates database but any mysql function returns an error (as it was deprecated in PHP 5.5)\r\nI'm running MAMP Pro\r\n\r\nTried to change the enviroment variables:\r\n[.profile]\r\nexport WP_CLI_PHP=/Applications/MAMP/bin/php/php5.4.4/bin/php\r\n[.bash_profile]\r\nexport WP_CLI_PHP=/Applications/MAMP/bin/php/php5.4.4/bin/php\r\n[.bashrc]\r\nexport PATH=$PATH:/Applications/MAMP/Library/bin\r\nalias wpinstall=\"bash ~/.wp-cli/wpinstall.sh\"\r\nalias php=\"/Applications/MAMP/bin/php/php5.4.4/bin/php\"\r\nexport WP_CLI_PHP=/Applications/MAMP/bin/php/php5.4.4/bin/php\r\n\r\n[wp --info]\r\nPHP binary:\t/usr/bin/php\r\nPHP version:\t5.5.29\r\nphp.ini used:\t/etc/php.ini\r\nWP-CLI root dir:\tphar://wp-cli.phar\r\nWP-CLI global config:\t/Users/samuel/.wp-cli/config.yml\r\nWP-CLI project config:\t\r\nWP-CLI version:\t0.21.0\r\n[echo $WP_CLI_PHP]\r\n/Applications/MAMP/bin/php/php5.4.4/bin/php\r\n\r\n\r\nStill I cannot change the PHP binary and create the tables (as I cannot any wp plugin or wp theme and so on).\r\n\r\nAny solutions or ideas?\r\n"},"comment":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/comments/158450500","html_url":"https://github.com/wp-cli/wp-cli/issues/2221#issuecomment-158450500","issue_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/2221","id":158450500,"user":{"login":"danielbachhuber","id":36432,"avatar_url":"https://avatars.githubusercontent.com/u/36432?v=3","gravatar_id":"","url":"https://api.github.com/users/danielbachhuber","html_url":"https://github.com/danielbachhuber","followers_url":"https://api.github.com/users/danielbachhuber/followers","following_url":"https://api.github.com/users/danielbachhuber/following{/other_user}","gists_url":"https://api.github.com/users/danielbachhuber/gists{/gist_id}","starred_url":"https://api.github.com/users/danielbachhuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielbachhuber/subscriptions","organizations_url":"https://api.github.com/users/danielbachhuber/orgs","repos_url":"https://api.github.com/users/danielbachhuber/repos","events_url":"https://api.github.com/users/danielbachhuber/events{/privacy}","received_events_url":"https://api.github.com/users/danielbachhuber/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T16:25:59Z","updated_at":"2015-11-20T16:25:59Z","body":"> You're saying that wp-cli was tested in PHP 5.5 and worked alright and these are just notices, with the functions working okay.\r\n\r\nCorrect.\r\n\r\n> So, what could be the errors, since the credentials are just root/root and the MAMP is running? 127.0.0.1 instead of localhost?\r\n\r\nHard to say, because I don't have access to your local environment.\r\n\r\nYou might check out past threads on WordPress StackExchange for tips: http://wordpress.stackexchange.com/search?q=wp-cli+mamp"}}