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

Unexpected string gets prefixed #1091

Open
ondrejmirtes opened this issue Dec 5, 2024 · 0 comments
Open

Unexpected string gets prefixed #1091

ondrejmirtes opened this issue Dec 5, 2024 · 0 comments

Comments

@ondrejmirtes
Copy link

Bug report

Question Answer
PHP-Scoper version The version in Box version 4.1.0@fb068b2 2022-09-25 14:01:25 UTC -->
PHP version 8.1
Platform with version e.g. Ubuntu/Windows/MacOS

This string gets unexpectedly prefixed https://github.com/theofidry/cpu-core-counter/blob/0adfea3d08865a29eb762e0f9aa3641324e0cb0a/src/Finder/WindowsRegistryLogicalFinder.php#L30:

'reg query HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor'

Like this:

'_PHPStan_a34c2f4c6\\reg query HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor'
scoper.inc.php

https://github.com/phpstan/phpstan-src/blob/2.0.x/compiler/build/scoper.inc.php (without the related patch)

Output
$ command
> output
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

No branches or pull requests

1 participant