php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1831 PHP4 as CGI parses itself
Submitted: 1999-07-22 12:15 UTC Modified: 1999-08-20 12:09 UTC
From: brian at phorum dot org Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0 Beta 1 OS: FreeBSD 3.0
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: brian at phorum dot org
New email:
PHP Version: OS:

 

 [1999-07-22 12:15 UTC] brian at phorum dot org
PHP4:
./configure --with-mysql
I placed the binary in /usr/local/bin as php4.

Paralell to this I set up PHP3.0.11:
./configure --with-mysql
I placed the binary in /usr/local/bin as php3.

In httpd.conf I placed:

ScriptAlias /php-cgi/ "/usr/local/bin/"

AddHandler php4-script .php
Action php4-script "/php-cgi/php4"

AddHandler php-script .phtml
Action php-script "/php-cgi/php"

I created two files.  One named info.phtml and one named info.php.  In both I put: <? phpinfo(); ?>.

info.phtml gives normal php3.0.11 info.

info.php gives:

Parse error: parse error in /usr/local/bin/php4 on line 117

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-05 10:43 UTC] brianlmoon at cvs dot php dot net
It no longer parses itself with beta 2.  It now reports no input file specified.  This is the same response I get on Solaris 2.6 with Apache 1.3.6.
 [1999-08-20 12:09 UTC] brianlmoon at cvs dot php dot net
Would it have killed someone to simply say "Have you set the doc_root in php.ini?".  Is that documented somewhere?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC