Bug #1612: mod_php seems does not merges per directory configuration correctly
| From: | sp at alkor dot ru | Date: | Mon, 28 Jun 1999 10:53:24 +0000 |
| Subject: | Bug #1612: mod_php seems does not merges per directory configuration correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7675@lists.php.net to get a copy of this message | ||
From: sp@alkor.ru
Operating system: FreeBSD 3.2-RELEASE
PHP version: 3.0.8
PHP Bug Type: Other
Bug description: mod_php seems does not merges per directory configuration correctly
The problem with php as apache module.
<directory /document-root>
php3_engine off
</directory>
<directory /document-root/php-enabled>
php3_engine on
</directory>
Seems does not work. I've tested compiled with a
debugger and found, that in mod_php3.c in function
php3_merge_dir merge is done by the way:
memcpy(new, base,...);
if(orig->x != add->x) new->x = add->x;
And new is just copy of the base. So, apache
per-directory (location) configuration does not
work as desired. That code seems to be in php-3.0.11
too.