jubianchi / phpswitch

A CLI utility to help you build and test PHP versions
http://jubianchi.github.io/phpswitch/
MIT License
90 stars 8 forks source link

Strange things command after command #28

Open buxx opened 10 years ago

buxx commented 10 years ago

Phpswitch make strange things when i execute commands one after one:

bux@citron:~/ $ php switch php-5.4.8
PHP switched to php-5.4.8
PHP 5.4.8 (cli) (built: Apr 24 2014 14:53:41) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

bux@citron:~/ $ php -v
PHP 5.5.3-1ubuntu2.3 (cli) (built: Apr  4 2014 01:10:38) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

bux@citron:~/ $ php -v
PHP 5.4.8 (cli) (built: Apr 24 2014 14:53:41) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

bux@citron:~/ $ php -v
PHP 5.5.3-1ubuntu2.3 (cli) (built: Apr  4 2014 01:10:38) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

bux@citron:~/ $ php -v
PHP 5.4.8 (cli) (built: Apr 24 2014 14:53:41) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

bux@citron:~/ $ phpswitch php:current
php-5.4.8
bux@citron:~/ $ phpswitch php:current
PHP Fatal error:  Call to undefined function jubianchi\PhpSwitch\Console\posix_getuid() in /home/bsevajol/phpswitch/src/jubianchi/PhpSwitch/Console/Application.php on line 134

Fatal error: Call to undefined function jubianchi\PhpSwitch\Console\posix_getuid() in /home/bsevajol/phpswitch/src/jubianchi/PhpSwitch/Console/Application.php on line 134
bux@citron:~/ $ phpswitch php:current
php-5.4.8

bux@citron:~/ $ phpswitch php:current
PHP Fatal error:  Call to undefined function jubianchi\PhpSwitch\Console\posix_getuid() in /home/bsevajol/phpswitch/src/jubianchi/PhpSwitch/Console/Application.php on line 134

Fatal error: Call to undefined function jubianchi\PhpSwitch\Console\posix_getuid() in /home/bsevajol/phpswitch/src/jubianchi/PhpSwitch/Console/Application.php on line 134