Re: Please help document headers_sent()
| From: | Philip Olson | Date: | Thu, 07 Nov 2002 00:40:56 +0000 |
| Subject: | Re: Please help document headers_sent() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90594@lists.php.net to get a copy of this message | ||
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