-
Notifications
You must be signed in to change notification settings - Fork 348
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
php i/o streams not seeming to work #103
Comments
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/103957712. |
Are you accessing this as a web page? or are you running this as a cli script? I think the behavior would be different depending on what you're doing. If it's a web page, this is what I'd expect... 1.) 2.) Because you've called 3.) Calling
http://php.net/manual/en/function.ob-start.php Also, you're calling Lastly, what do you see when you run this locally? What version of PHP is your local server using? Is it using fast-cgi or mod_php? Thanks! |
hi again daniel. appreciate the msg. this is a web page and ive
NOTE - locally just using the php builtin (also on 5.6) i get what is
|
Sorry, I don't see your attachments. Here's the script that I used:
When I run this, I all I see 10 calls of "writing to php://output directly" and the If you want similar behavior from PWS, you're going to need to change this option in You can do that by adding a The other option would be to just use PHP's built-in HTTP server. You can do that by setting Ex:
Note that we use For what it's worth, I have only seen PHP's HTTP server listed as "dev" quality. We go with the FastCGI setup in the build pack because this is widely recognized as the best option for production PHP installations. You're welcome to use the built in HTTP server if it works for you though. |
fantastic! i looked everywhere for this. the catch_workers_output = yes -j On Wed, Sep 23, 2015 at 6:22 AM, Daniel Mikusa notifications@github.com
|
@dmikusa-pivotal Thanks for working through this! Closing. |
I had expected more info going to the logs, however the only thing i've gotten to work so far is error_log. Is this expected behavior? Sample php file here does not show stdout/stderr in the logs but does write the output stream and error_log line:
The text was updated successfully, but these errors were encountered: