ob_start() causes phpsh to hang, sort of
December 15, 2007 – 3:19 pmIf you manually call ob_start() at the beginning of your script, you might notice that you are unable to use phpsh. By commenting it out, I was able to fix the issue.
I don’t think it technically hangs, it just sits there with the data in a buffer waiting to be flushed.



One Response to “ob_start() causes phpsh to hang, sort of”
Can’t say how grateful I am for this post. I have been struggling the whole day trying to find the problem. First the select.poll() problem on the iMac and then this.
I went down another solution because I didn’t want to comment out ob_start in the code. I don’t like changing the production code just to be able to use phpsh so I added ob_end_flush() to the configuration file at /etc/phpsh/rc.php
Cheers
By tayfun on Nov 19, 2009