Bug #18397 Updated: Unable to do PHP source view (PHPS)
| From: | sniper@php.net | Date: | Wed, 17 Jul 2002 21:58:17 +0000 |
| Subject: | Bug #18397 Updated: Unable to do PHP source view (PHPS) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14462@lists.php.net to get a copy of this message | ||
ID: 18397
Updated by: sniper@php.net
Reported By: robbat2@orbis-terrarum.net
-Status: Open
+Status: Verified
Bug Type: Apache2 related
Operating System: Linux-2.4.18-rc1-ac6
-PHP Version: 4CVS-2002-07-17
+PHP Version: 4.3.0-dev
New Comment:
It does not work as it hasn't been implemented yet.
Previous Comments:
------------------------------------------------------------------------
[2002-07-17 17:56:38] robbat2@orbis-terrarum.net
Side note on this,
I just reproduced it on Linux-2.4.18, with a slightly older CVS of PHP
and Apache2.0.39.
------------------------------------------------------------------------
[2002-07-17 17:54:48] robbat2@orbis-terrarum.net
I just commented out my previous PHP lines,
and put in this:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
To test for certain again, and although regular PHP works with the
AddType directive, the directive containing php-source seems to do
nothing at all.
I use the Set[Input/Output]Filter PHP commands because I use a chain of
content handlers in some other parts of my server (namely PHP+SSI), so
just the having the AddType method fixed would not be enough, as I need
an
Filter instead.
For testing purposes, here are some PHP pages I'm working on:
http://robbat2.matchbox.research.techbc.ca/sqlparse.php
http://robbat2.matchbox.research.techbc.ca/sqlparse.phps
(In case you are wondering about them, I'm a core developer on
phpMyAdmin)
------------------------------------------------------------------------
[2002-07-17 17:09:25] sniper@php.net
I have used "AddType application/x-httpd-php .php" with
apache2 and it works just fine. I didn't try the source type
though. Have you tried those? Or just the new style?
--Jani
------------------------------------------------------------------------
[2002-07-17 16:33:24] robbat2@orbis-terrarum.net
Back in the days of Apache1
All that was needed to get the syntax highlighted PHP source view was:
AddType application/x-httpd-php-source .phps
In the Apache configuration file.
This followed the same pattern as the line to make PHP run on PHP
files:
AddType application/x-httpd-php .php
Now with Apache2, the regular line has become:
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
And I have looked high and low to get the functionality with Apache2
but it does not seem to exist. I have looked in the PHP source as well,
to no avail.
From looking at the source, could a new set of input/output filters
named PHPS to do the source highlighting?
I listed this as a bug, as the removal of the PHPS functionality is not
documented in any release notesor mailing list that I have found.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18397&edit=1