From:             jsantana at csulb dot edu
Operating system: Solaris 10 x86
PHP version:      5.2.6
PHP Bug Type:     CGI related
Bug description:  phpinfo issue

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


-- 
Edit bug report at http://bugs.php.net/?id=45153&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=45153&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=45153&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=45153&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45153&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=45153&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45153&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45153&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45153&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45153&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45153&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=45153&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=45153&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45153&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45153&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45153&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45153&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45153&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45153&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45153&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45153&r=mysqlcfg

Reply via email to