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

Reporting Warning in amphp/parallel Usage on Windows System #200

Closed
directsoftware opened this issue Mar 22, 2024 · 1 comment
Closed

Reporting Warning in amphp/parallel Usage on Windows System #200

directsoftware opened this issue Mar 22, 2024 · 1 comment

Comments

@directsoftware
Copy link

Hello,

I am writing to report a warning that occurs while utilizing your library on the Windows operating system. For context, I am currently using Windows 11.

The warning message is as follows:
PHP Warning: cli_set_process_title(): cli_set_process_title had an error: Windows error code: 6 in /path/to/project/vendor/amphp/parallel/src/Context/Internal/process-runner.php on line 16

@trowski
Copy link
Member

trowski commented Mar 24, 2024

This line was using the error suppression operator (@), so this warning should not have been issued. You likely are using an error handler which does not respect the current error reporting level.

This mistake is frequently made, so as we've been converting uses of @ to explicitly set the error handler instead, which I've done to avoid this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants