Skip to content

Conversation

Sean-Der
Copy link
Contributor

This was filed in the bug tracker here


$test_args = ['$argi', '$argn'];
foreach ($test_args as $test_arg) {
var_dump(`cat "$filename_txt" | "$php" -n -R 'echo $test_arg . PHP_EOL;'`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To this place in the test. for portability It should be

        if (substr(PHP_OS, 0, 3) == 'WIN') {
                var_dump(`type "$filename_txt" | "$php" -n -R "echo $test_arg . PHP_EOL;"`);
        } else {
                var_dump(`cat "$filename_txt" | "$php" -n -R 'echo $test_arg . PHP_EOL;'`);
        }

Otherwise looks good to me.

Thanks.

@Sean-Der
Copy link
Contributor Author

Thanks for the review @weltling!

I just made those two changes and squashed down into one commit, should all be good now!

@php-pulls
Copy link

Comment on behalf of ab at php.net:

Yeah, merged in 7.0 with 68ebfc8. Thanks!

@php-pulls php-pulls closed this Mar 15, 2016
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

Successfully merging this pull request may close these issues.

3 participants