We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When php is launched with chroot as:
chroot
sudo /usr/sbin/chroot /opt/php55 /usr/bin/php "$@"
and in bash, run the command:
./yii
Method \yii\console\Request::resolve() throws exception 'yii\base\InvalidRouteException' with message 'Unable to resolve the request "--".'
'yii\base\InvalidRouteException' with message 'Unable to resolve the request "--".'
I expected the route to resolve as "help".
This happens because $_SERVER['argv'] contains an array:
Array ( [0] => /var/www/my_project/yii [1] => -- )
and route resolved as NULL.
The text was updated successfully, but these errors were encountered:
Fix. Change this line
yii2/framework/console/Request.php
Line 68 in f2ea9be
$route = (string)array_shift($rawParams);
Sorry, something went wrong.
No branches or pull requests
What steps will reproduce the problem?
When php is launched with
chroot
as:sudo /usr/sbin/chroot /opt/php55 /usr/bin/php "$@"
and in bash, run the command:
./yii
Method \yii\console\Request::resolve() throws exception
'yii\base\InvalidRouteException' with message 'Unable to resolve the request "--".'
What is the expected result?
I expected the route to resolve as "help".
What do you get instead?
This happens because $_SERVER['argv'] contains an array:
and route resolved as NULL.
Additional info
The text was updated successfully, but these errors were encountered: