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
Symfony version(s) affected: 2.8+
Description StringInput removes backslashes from a normal string.
For example:
stripcslashes
symfony/src/Symfony/Component/Console/Input/StringInput.php
Line 60 in 5aa0967
How to reproduce Create an index.php file with the code below.
<?php use Symfony\Component\Console\Input\StringInput; require __DIR__.'/vendor/autoload.php'; $input = new StringInput('search SomeNamesapce\SomeClass'); echo $input->__toString(), PHP_EOL; // Expected: "search SomeNamespace\SomeClass" // Actual: "search SomeNamespaceSomeClass" $input = new StringInput('search SomeNamesapce\\SomeClass'); echo $input->__toString(), PHP_EOL; // Expected: "search SomeNamespace\SomeClass" // Actual: "search SomeNamespaceSomeClass" $input = new StringInput('search SomeNamesapce\\\SomeClass'); echo $input->__toString(), PHP_EOL; // Expected: "search SomeNamespace\\SomeClass" // Actual: "search SomeNamespace\SomeClass" $input = new StringInput('search SomeNamesapce\\\\SomeClass'); echo $input->__toString(), PHP_EOL; // "search SomeNamespace\SomeClass" // Expected: "search SomeNamespace\\SomeClass" // Actual: "search SomeNamespace\SomeClass" $input = new StringInput('search SomeNamesapce\\\\\SomeClass'); echo $input->__toString(), PHP_EOL; // Expected: "search SomeNamespace\\\SomeClass" // Actual: "search SomeNamespace\SomeClass"
Possible Solution I am not sure that it is a bug because I couldn't find any relevant issues. Is it an expected behavior?
Additional context This is the result when running "php index.php"
$ php index.php search SomeNamesapceSomeClass search SomeNamesapceSomeClass search 'SomeNamesapce\SomeClass' search 'SomeNamesapce\SomeClass' search 'SomeNamesapce\SomeClass'
The text was updated successfully, but these errors were encountered:
There is seem no issue with this behavior.
Sorry, something went wrong.
No branches or pull requests
Symfony version(s) affected: 2.8+
Description
StringInput removes backslashes from a normal string.
For example:
stripcslashes
function.symfony/src/Symfony/Component/Console/Input/StringInput.php
Line 60 in 5aa0967
How to reproduce
Create an index.php file with the code below.
Possible Solution
I am not sure that it is a bug because I couldn't find any relevant issues.
Is it an expected behavior?
Additional context
This is the result when running "php index.php"
The text was updated successfully, but these errors were encountered: