httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: minimal custom modul with no functionality
Date Wed, 31 Jan 2018 13:05:03 GMT
On Wed, Jan 31, 2018 at 7:57 AM, Hajo Locke <> wrote:
> Hello List,
> i try to remove mod_php and switch to php-cgi with proxy_fcgi and mpm_event.
> An example setup is running well.  But by removing i want to keep
> support for php_value/php_flag directives  in .htaccess
> This is done by php-htscanner extension. But for a working php-htscanner
> extension it is needed that apaches knows about this directives.
> (a threadsafe compiled is currently no option because of other
> problems).
> So following this tutorial i "created" a custom module which just registers
> my needed directives and does nothing else:
> I reduced the example to minimum. Please look here:
> compiling and using are successful. Apache knows about php_flag/php_value
> and my .htaccess is working together with htscanner. my php-ini settings are
> edited like expected.
> This is a minimal apache-modul i just relinquished to use a hook registering
> function.
> My question is: Is this safe for using? I did not notice any errors and all
> is working like expected, but iam no programmer.
> Please take a short look at the code and tell me your opinion.
> Thanks,
> Hajo

Seems safe. In htaccess, you would get concurrent writes to that
static global config, but IIUC you will never be reading/using it.

Eric Covener

View raw message