Bug #18397 Updated: Unable to do PHP source view (PHPS)

From: Date: Wed, 17 Jul 2002 22:07:04 +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-14464@lists.php.net to get a copy of this message
ID: 18397 Updated by: robbat2@orbis-terrarum.net Reported By: robbat2@orbis-terrarum.net Status: Verified Bug Type: Apache2 related Operating System: Linux-2.4.18-rc1-ac6 PHP Version: 4.3.0-dev New Comment: Is there either an ETA for it or some implementation suggestions for writing it myself? Previous Comments: ------------------------------------------------------------------------ [2002-07-17 17:58:17] sniper@php.net It does not work as it hasn't been implemented yet. ------------------------------------------------------------------------ [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

« previous php.bugs (#14464) next »