From:             karasek at ceskyserver dot cz
Operating system: linux
PHP version:      4.4.0
PHP Bug Type:     CGI related
Bug description:  php parses itself

Description:
------------
I'm trying to run php4 as cgi and php5 as Apache's 
module.

I get this error:
address: http://skatach.ceskyserver.cz:8000/info.php4

Warning: Unexpected character in input: '' (ASCII=15) 
state=1 in /usr/local/php4/bin/php on line 919

Parse error: parse error, unexpected T_STRING in /usr/
local/php4/bin/php on line 919

This looks like php parse itself binary.

When I try the same with php5, everythink is OK.

address: http://skatach.ceskyserver.cz:8000/info.php5

The important part of my httpd.conf is:

       scriptalias /cgi-php /usr/local/php5/bin
        scriptalias /bin /usr/local/php4/bin
        AddHandler php4-exec .php4
        AddHandler php5-exec .php5
        Action php5-exec /cgi-php/php
        Action php4-exec /bin/php

I tryed the same with older version (4.3.8) of PHP, but 
the result was the same.

Is it really a bug or is the problem between keyboard 
and chair? :o)

Regards
    Tony

Reproduce code:
---------------
<?
phpinfo();
?>


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

Reply via email to