Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpbrew use x.x.x didn't work for me after source ~/.phpbrew/bashrc #964

Closed
im050 opened this issue Apr 5, 2018 · 2 comments
Closed

phpbrew use x.x.x didn't work for me after source ~/.phpbrew/bashrc #964

im050 opened this issue Apr 5, 2018 · 2 comments

Comments

@im050
Copy link

im050 commented Apr 5, 2018

Output

phpbrew use 7.2.4
phpbrew switch 7.2.4

Exception: You should not see this, if you see this, it means you didn't load the ~/.phpbrew/bashrc script, please check if bashrc is sourced in your shell.
Trace:

    0) PhpBrew\Command\VirtualCommand->execute('7.2.4')
    1) call_user_func_array([PhpBrew\Command\UseCommand, 'execute'], ['7.2.4'])
    2) CLIFramework\CommandBase->executeWrapper(['7.2.4'])
    3) CLIFramework\Application->run(['/usr/local/phpbrew/phpbrew', 'use', '7.2.4'])
    4) PhpBrew\Console->runWithTry(['/usr/local/phpbrew/phpbrew', 'use', '7.2.4'])
    5) require('phar:///usr/local/phpbrew/phpbrew/scripts/phpbrew-emb.php')

I have already source the bashrc file before use.
In my another PC(OSX 10.12) it has been work.

Expected Result


Command

linyulindeMacBook-Pro:~ linyulin$ source ~/.phpbrew/bashrc
linyulindeMacBook-Pro:~ linyulin$ phpbrew use 7.2.4

Platform

OS:

OSX 10.13.3

Running PHP: php 5.6.30

Installing PHP: php 7.2.4

@im050
Copy link
Author

im050 commented Apr 5, 2018

linyulindeMacBook-Pro:~ linyulin$ source ~/.phpbrew/bashrc && phpbrew list
* (system)
  php-7.2.4
linyulindeMacBook-Pro:~ linyulin$ phpbrew use 7.2.4
Exception: You should not see this, if you see this, it means you didn't load the ~/.phpbrew/bashrc script, please check if bashrc is sourced in your shell.
Trace:

    0) PhpBrew\Command\VirtualCommand->execute('7.2.4')
    1) call_user_func_array([PhpBrew\Command\UseCommand, 'execute'], ['7.2.4'])
    2) CLIFramework\CommandBase->executeWrapper(['7.2.4'])
    3) CLIFramework\Application->run(['/usr/local/phpbrew/phpbrew', 'use', '7.2.4'])
    4) PhpBrew\Console->runWithTry(['/usr/local/phpbrew/phpbrew', 'use', '7.2.4'])
    5) require('phar:///usr/local/phpbrew/phpbrew/scripts/phpbrew-emb.php')

@peter279k
Copy link
Member

The issue is outdated and closed. Please use the latest stable PHPBrew version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants