php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24277 invalid command 'php_flag'
Submitted: 2003-06-21 05:00 UTC Modified: 2003-06-23 17:46 UTC
From: brunet at mouloud dot com Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.3.2 OS: RedHat 7.2
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: brunet at mouloud dot com
New email:
PHP Version: OS:

 

 [2003-06-21 05:00 UTC] brunet at mouloud dot com
Description:
------------
I was using php 4.2.1 with apache 1.3.22, and it was 
working fine. But i updated php to 4.3.2, and now, apache 
give me an error for the 'php_flag' command in the 
httpd.conf.
I see over the web a lot of message about this error, but 
with older version of php and / or apache. And it's seems 
to be corrected by an update. But this is the last version 
of php, and a very recent version of apache.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-21 05:39 UTC] elmicha@php.net
Can you please show us the line with the php_flag and the exact error message?

 [2003-06-21 14:54 UTC] brunet at mouloud dot com
This is the error :
Syntax error on line 1457 of /etc/httpd/conf/httpd.conf:
Invalid command 'php_flag', perhaps mis-spelled or defined 
by a module not included in the server configuration

And this is the line 1457 :
php_flag register_globals off

I didn't change anything in my httpd.conf, and it was 
working before I switch to PHP 4.3.2
The only difference is tha I install openSSL and imap and 
compiled PHP with imap support.
 [2003-06-23 17:46 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

You should be using:
php_flag register_globals 0

Also, make sure php is loaded ;)

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 14 09:01:26 2025 UTC