-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
symfony/process returns empty outputs on IIS #24924
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
Comments
Status: Needs Review |
Could you do the following, so we could get a reproducer ?
In case you need some help you can read this blog post : https://symfony.com/doc/current/contributing/code/reproducer.html |
Here is a simple diff that reproduces the issue on IIS: Rudloff/symfony-standard@83c49b2 (I can also confirm it does not reproduce when using Symfony's own |
Maybe related to #18503? |
I have the same issue in two different environments. Both run apache. |
Oh, I know the reason: PHP on Windows Apache or IIS is threaded, but Process uses |
Running Non-Thread Safe PHP 7.1.12 64bit via FastCGI with IIS 7.5 and Symfony 3.3.13, i do get an output as expected. |
Is there is no easy fix for this, would it be possible to throw an exception that explains that PHP needs to be non-thread safe? |
Fixed in #25417 |
…las-grekas) This PR was merged into the 3.3 branch. Discussion ---------- [Process] Dont rely on putenv(), it fails on ZTS PHP | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24924 | License | MIT | Doc PR | - `putenv()` is not thread safe, but ZTS is PHP defaults on Windows. Commits ------- ef632ec [Process] Dont rely on putenv(), it fails on ZTS PHP
Unfortunately, I can still reproduce the same issue with Symfony 3.4.2. |
I'm getting this same 'empty outputs on IIS' issue... |
I can still reproduce with Symfony 3.4.3 😞 |
On Azure (with IIS) running Process fails completely for me with message
Completely nothing in Azure and PHP logs. |
Are there news on this? I'm facing the same problem with Symfony 3.4.23 |
Hey, thanks for your report! |
I don't have access to IIS anymore, so I can not try to reproduce again. |
Since @Rudloff cannot reproduce it anymore and the issue relates to an old version of Symfony, then I suggest closing the issue. If someone still are facing this bug, then feel free to create a new issue. |
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I'm using PHP 7.1 on IIS 7.5 and symfony/process always returns an empty output.
Here is a test case:
What's strange is that it works when calling PHP (same binary) from the commandline.
And of course the same code works fine on my Linux/Apache server.
I tested various other commands (
cd
,Python.exe
) and I always get the same empty result.mustRun()
does throw an exception if the command does not exist:Edit: I also tried configuring IIS to use another PHP binary (installed with Chocolatey) and I get the same issue, so I guess it is linked to IIS itself.
The text was updated successfully, but these errors were encountered: