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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 20:01:36 2025 UTC