On Wed, 6 Nov 2002, Ilia A. wrote: > On November 6, 2002 07:10 pm, Philip Olson wrote: > > I get a Segmentation fault with this script using > > PHP CLI: > > > > <?php > > headers_sent($file, $line); > > ?> > > philip@rock:~$ php test.php > > Segmentation fault > > > > That's when no headers are sent before the call. But if > > headers are sent beforehand, it works: > > The crash has been fixed in the CVS. PHP CLI cannot send any headers because > it is not ment for a webserver enviroment. While CGI, is mostly geared > towards web servers and by default will try to send headers.
Okay cool. I just built from CVS and can confirm it has been fixed :) This time I used --enable-debug too ;) I couldn't build from HEAD yesterday but it's okay today. Regards, Philip -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php