SelectWithin: Cannot modify header information - headers already sent
|Reported by:||morkl||Owned by:||madair|
|External ID:||Operating System:||All|
In SelectWithin.php, the content-type header is sent after the content. With the default output_buffering value of 4096, it still works with small result sets, but result sets larger than 4096 cause the header to be sent after the buffer has been flushed, resulting in a PHP error.
A workaround is to set an unlimited buffer size in php.ini:
output_buffering = On
The attached patch forces output buffering during processing and flushes after the header has been sent.