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

Remove NULL byte from class names, which cause problems when using phpdbg #450

Closed
wants to merge 1 commit into from

Conversation

smuuf
Copy link
Contributor

@smuuf smuuf commented Jun 12, 2024

Resolves #449

  • bug fix
  • BC break? no (hopefully)

New output, which is now correct (from what is described in the issue):

[smuuf@smuuf-hp]$ phpdbg8.2 -qrrb -d memory_limit=4096M -d register_argc_argv=on anonclasstestcase.phpt --method=nette-tester-list-methods

TestCase:Tester\TestCase@anonymous/mnt/d/produkce/coding/php/php-nette-tester/anonclasstestcase.phpt:8$0
Method:testMe
Dependency:/mnt/d/produkce/coding/php/php-nette-tester/anonclasstestcase.phpt
Dependency:/mnt/d/produkce/coding/php/php-nette-tester/src/Framework/TestCase.php
[smuuf@smuuf-hp]$ php8.2 -d memory_limit=4096M -d register_argc_argv=on anonclasstestcase.phpt --method=nette-tester-list-methods

TestCase:Tester\TestCase@anonymous/mnt/d/produkce/coding/php/php-nette-tester/anonclasstestcase.phpt:8$0
Method:testMe
Dependency:/mnt/d/produkce/coding/php/php-nette-tester/anonclasstestcase.phpt
Dependency:/mnt/d/produkce/coding/php/php-nette-tester/src/Framework/TestCase.php

@dg dg force-pushed the master branch 2 times, most recently from 15c0cd0 to 9f3ba77 Compare June 18, 2024 16:49
@dg dg closed this in 9fd36f8 Jun 18, 2024
@dg
Copy link
Member

dg commented Jun 18, 2024

Thanks

dg added a commit that referenced this pull request Jun 18, 2024
…Closes #449]

get_debug_type() does not output a null byte for anonymous classes
@smuuf smuuf deleted the fixanonclasses branch September 25, 2024 07:36
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.

TestCase doesn't report test methods correctly when using phpdbg
2 participants