|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17797 php_flag/php_admin_flag commands missing
Submitted: 2002-06-17 06:43 UTC Modified: 2002-06-17 06:51 UTC
From: om at mascia dot biz Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.2.1 OS: Win32 (Win2K)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: om at mascia dot biz
New email:
PHP Version: OS:


 [2002-06-17 06:43 UTC] om at mascia dot biz
Having tested PHP 4.2.1 (win32) on Apache 2.0.36 (Win32), I could not use the directives php_flag nor php_admin_flag in apache conf file : unknown directives, maybe a module not loaded. The php4apache2.dll was loaded and functionnal except for this issue.

I have had a look at the released 4.2.1 source code.

The php_dir_cmds structure in apache_config.c file of PHP 4.2.1 version seems to missing definitions for 'php_flag' and 'php_admin_flag' commands.

Using php_value command works okay, so the bug might well be only the absence (above) of the defintion for 'php_flag'.

Side note : php_admin_value refused to work (where it worked before with Apache 1.3.24) saying : not allowed at this location. Might be a documentation issue that I would have overlooked.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-17 06:51 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

 [2002-06-17 07:03 UTC] om at mascia dot biz
Thanks, verified. Fixed in code, but I do not know if it is tested and functionnal.

Do you think it would be reasonnable to grab the apache2filter directory from the latest snapshot and attempt to compile it (win32) within the current released 4.2.1 source code base, as to obtain a temporary locally built 4.2.1 with this important fix ?

Or are there other architectural changes which would certainly forbid even attempting this ?

Thank you,
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Feb 04 19:05:50 2023 UTC