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

Some functionality requires register_argc_argv #4595

Closed
CJDennis opened this issue Oct 30, 2017 · 2 comments
Closed

Some functionality requires register_argc_argv #4595

CJDennis opened this issue Oct 30, 2017 · 2 comments

Comments

@CJDennis
Copy link
Contributor

@CJDennis CJDennis commented Oct 30, 2017

What are you trying to achieve?

Code coverage of functional tests by using c3.php.

What do you get instead?

Lots of errors

PHP Notice:  Undefined index: argv in phar://C:/usr/bin/codecept.phar/src/Codeception/Application.php on line 137
PHP Notice:  Undefined index: argv in phar://C:/usr/bin/codecept.phar/src/Codeception/Command/SelfUpdate.php on line 44

Changing register_argc_argv = On in php.ini and restarting the server fixes this error, however, this setting is not recommended in either production or development environments.

Setting register_argc_argv = On doesn't completely fix the issue, however.

PHP Notice:  Undefined offset: 0 in phar://C:/usr/bin/codecept.phar/src/Codeception/Command/SelfUpdate.php on line 44

Details

  • Codeception version: 2.3.6
  • PHP Version: 5.5.9
  • Operating System: Windows 10
  • Installation type: manual

This issue was mentioned as an aside in #531.

@Naktibalda
Copy link
Member

@Naktibalda Naktibalda commented Nov 27, 2017

@CJDennis register_argc_argv=On is absolutely necessary for running Codeception, but it shouldn't be necessary for c3.
I fixed warnings and added setting check to Application::run, but I haven't tested c3, so I will be waiting for your feedback.

@CJDennis
Copy link
Contributor Author

@CJDennis CJDennis commented Nov 28, 2017

@Naktibalda Thanks! I'll let you know when I've tested it.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.