php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34167 php parses itself
Submitted: 2005-08-17 10:58 UTC Modified: 2005-08-17 10:59 UTC
From: karasek at ceskyserver dot cz Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.4.0 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: karasek at ceskyserver dot cz
New email:
PHP Version: OS:

 

 [2005-08-17 10:58 UTC] karasek at ceskyserver dot cz
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();
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-17 10:59 UTC] tony2001@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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 04:01:33 2024 UTC