cvs: pecl /htscanner README

From: Date: Wed, 20 Dec 2006 20:13:53 +0000
Subject: cvs: pecl /htscanner README
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-6807@lists.php.net to get a copy of this message
pajoye Wed Dec 20 20:13:53 2006 UTC Modified files: /pecl/htscanner README Log: - Add patch against apache 2.0.59 to the README this patch allows one to use php_* directive in .htaccess files without using <IfModule mod_php.c> http://cvs.php.net/viewvc.cgi/pecl/htscanner/README?r1=1.1&r2=1.2&diff_format=u Index: pecl/htscanner/README diff -u pecl/htscanner/README:1.1 pecl/htscanner/README:1.2 --- pecl/htscanner/README:1.1 Thu Nov 30 01:54:09 2006 +++ pecl/htscanner/README Wed Dec 20 20:13:53 2006 @@ -18,6 +18,41 @@ </IfModule> around the settings. This way apache will ignore them. +If for some reasons you like to allow your users to have .htaccess files +without <IfModule mod_php.c>, you can use the patch below, provided by +Eugeny Zadevalov <eugeny at zadevalov dot com>, against apache 2.0.59. + + +=== +diff -uNr httpd-2.0.59/server/core.c httpd-2.0.59/server/core.c +--- httpd-2.0.59/server/core.c 2006-07-12 07:40:55.000000000 +0000 ++++ httpd-2.0.59/server/core.c 2006-12-20 16:54:16.000000000 +0000 +@@ -1638,6 +1638,11 @@ + "> directive missing closing '>'", NULL); + } + ++static const char *php_dummy_handler(cmd_parms *cmd, void *dummy, const char *name, const char *value) ++{ ++ return NULL; ++} ++ + static const char *dirsection(cmd_parms *cmd, void *mconfig, const char *arg) + { + const char *errmsg; +@@ -3155,6 +3160,10 @@ + + static const command_rec core_cmds[] = { + ++/* Dummy php_* commands */ ++AP_INIT_TAKE2("php_value", php_dummy_handler, NULL, OR_OPTIONS, "Dummy PHP Value Modifier"), ++AP_INIT_TAKE2("php_flag", php_dummy_handler, NULL, OR_OPTIONS, "Dummy PHP Flag Modifier"), ++ + /* Old access config file commands */ + + AP_INIT_RAW_ARGS("<Directory", dirsection, NULL, RSRC_CONF, +=== + + Changelog: ---------- 0.5.0 and later changelog is visible in the package.xml or on

« previous php.pecl.cvs (#6807) next »