Monday, August 26, 2013

PHP output_buffering setting and redirect() in 2.3

I just ran into something a little weird. I have an app that I recently converted from 1.3 to 2.3 (2.3.9 to be exact). Everything was working fine in both versions then I had to do some troubleshooting (I can't remember exactly what) where I turned output_buffering=Off in my php.ini file. After doing this, none of the calls to $this->redirect() worked as expected in the 2.3 version of the app. I would get a blank page in my browser. Going back to the 1.3 version of the app, the redirects still worked fine. When I remembered what I had done (turned output_buffering off) and set it back on, then the 2.3 version of my app worked as expected.

Anyone care to comment?

BTW, I'm running on Win 7 with Apache/2.2.24 (Win32) PHP/5.3.26 if it makes any difference.

Ken

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: