PHP4 Bug #1831: PHP4 as CGI parses itself
| From: | brian at phorum dot org | Date: | Thu, 22 Jul 1999 16:15:37 +0000 |
| Subject: | PHP4 Bug #1831: PHP4 as CGI parses itself | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8980@lists.php.net to get a copy of this message | ||
From: brian@phorum.org
Operating system: FreeBSD 3.0
PHP version: 4.0 Beta 1
PHP Bug Type: Performance problem
Bug description: PHP4 as CGI parses itself
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