php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7491 php4-cgi crashes under apache
Submitted: 2000-10-27 06:47 UTC Modified: 2000-12-05 12:16 UTC
From: cech at debian dot org Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.3pl1 OS: Debian GNU/Linux
Private report: No CVE-ID: None
 [2000-10-27 06:47 UTC] cech at debian dot org
Hi,

David Biro has told me, that this script

   #!/usr/bin/php

   <?

    phpinfo();

   ?>



works if run by a user, but it segfaults when run/viewed under apache. I can only confirm it and attach a backtrace

#0  0x0 in ?? ()

#1  0x80a5f76 in php_body_write ()

#2  0x805b7a4 in main ()

#3  0x4011ebcc in __libc_start_main () from /lib/libc.so.6



                    Petr Cech

P.S. I've been also asked, why the X-Powerd-By: is displayed first, and not after the Content-Type: as it should

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-04 09:23 UTC] sniper@php.net
Could you please check if this happens with PHP4.0.4RC3:

http://www.php.net/distributions/php-4.0.4RC3.tar.gz

And to get useful backtrace, configure PHP 
with --enable-debug 

--Jani
 [2000-12-05 12:16 UTC] cech at debian dot org
seems fixed in 4.0.4RC3. Closing
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 18 08:01:26 2021 UTC