php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15318 No output is generated
Submitted: 2002-01-31 17:33 UTC Modified: 2002-02-17 16:51 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pmarks at employees dot org Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.1 OS: Linux 2.4.4
Private report: No CVE-ID: None
 [2002-01-31 17:33 UTC] pmarks at employees dot org
It appears as if PHP generates no output when called as an apache subprocess (It may not be apache specific).  But I'm running Apache 1.3.23 with mod_layout 3.0.4, and here is the problem I'm having:

Load http://ged.dynodns.net/band/index.php, and you will notice that both the header and footer are generated fine (both PHP files).  But the main file, index.php, generates no output, yet PHP returns a status of 0 (success, I believe).
I can show that it is most likely not a mod_layout problem, as it generates output just fine for regular HTML files (check http://ged.dynodns.net/band/test.html as a test case).  So I am inclined to believe that PHP is having a problem with being a subrequest in this particular instance.

I've looked at the source for mod_layout and tried to find a possible problem, but all the code has been abstracted such that it should handle any specified mime type (application/x-httpd-php is accepted by default, so that shouldn't be the problem either).

If needed, I can provide the code that calls the main page (index.php, in our example), if need be (its open-source).

Configure line:
./configure
  --with-apxs
  --disable-short-tags
  --without-mysql
  --with-pgsql=/usr/pgsql

The php.ini can be viewed here:
  http://ged.dynodns.net/band/php.ini

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-31 19:52 UTC] pmarks at employees dot org
I've added a cheap workaround for PHP scripts.  I appended this code to the header.php file:

<?php
        if (ereg("\.php[3-4]?$", $FILE))
                require($FILE);
?>

So, the problem still exists, this is just a way to get around it for the time being.
 [2002-01-31 20:21 UTC] pmarks at employees dot org
OK, now it seems that (I don't know what fixed/caused this development) the main page (http://ged.dynodns.net/band/index.phps) is working fine in normal mode, but when GET variables are in the URL, it doesn't show anything.

But also, http://ged.dynodns.net/band/events.phps doesn't work at all, and I cannot pinpoint what is causing them to not run during conditions like that.

(I have disabled the aforementioned code in the header.php file, since the main page doesn't need it anymore - I don't understand why, though)
 [2002-02-17 16:49 UTC] pmarks at employees dot org
Sorry, bogus report on my part.  Was a problem with mod_layout not wrapping the page correctly.
 [2002-02-17 16:51 UTC] jan@php.net
bogus by user request
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 02:01:28 2024 UTC