php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45153 phpinfo issue
Submitted: 2008-06-02 21:31 UTC Modified: 2008-06-02 23:06 UTC
From: jsantana at csulb dot edu Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.2.6 OS: Solaris 10 x86
Private report: No CVE-ID: None
 [2008-06-02 21:31 UTC] jsantana at csulb dot edu
Description:
------------
I've compiled PHP as a CGI and call all my scripts through suexec (Apache 2.x).  I'm noticing that all versions of PHP above 5.2.2 display the phpinfo(); command in all text in any web browser.  Version 5.2.2 and below all display the webpage the same way it is displayed when running PHP as an Apache module.  Why is this and how do I get both PHP module version and PHP CGI version to display the same way?

Ex.  
Working PHP 5.2.2:  http://gaggle.its.csulb.edu/~jsantana/phptest.php
Non-Working PHP 5.2.6:  http://eagles.its.csulb.edu/~jsantana/phptest.php

Reproduce code:
---------------
#!/usr/local/php5/bin/php

<html>
<head><title>PHP Test</title></head>
<body>
   <p>If nothing follows this paragraph, PHP is not enabled.</p>
   <?php phpinfo() ?>

</body>
</html>


Expected result:
----------------
The same output I would see when I run PHP as an Apache module


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-02 23:06 UTC] scottmac@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You need to use php-cgi, php is the CLI interface.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 11:01:31 2024 UTC