php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17071 "register_globals = on" does not have any effect
Submitted: 2002-05-07 06:55 UTC Modified: 2002-06-13 14:55 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: nixon68 at online dot de Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.2.0 OS: Suse Linux 7.0 Alpha Version
Private report: No CVE-ID: None
 [2002-05-07 06:55 UTC] nixon68 at online dot de
I changed this value in order to get some old scripts running without rewriting them. It didn't change anything. phpinfo() still says it's turned off. I changed other switches and that worked. Only register_globals does not seem to work.

Apache/1.3.12

Configure Command: './configure' '--with-mysql' '--with-apxs' 

Loaded Modules: mod_perl, mod_php4, mod_setenvif, mod_so, mod_unique_id, mod_example, mod_usertrack, mod_headers, mod_expires, mod_cern_meta, mod_proxy, mod_digest, mod_auth_db, mod_auth_dbm, mod_auth_anon, mod_auth, mod_access, mod_rewrite, mod_alias, mod_userdir, mod_speling, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_info, mod_status, mod_negotiation, mod_mime, mod_mime_magic, mod_log_referer, mod_log_agent, mod_log_config, mod_define, mod_env, mod_vhost_alias, mod_mmap_static, http_core



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-07 08:31 UTC] mfischer@php.net
Just to eliminiate the obvious: you have made sure that the PHP.INI file you applied the change to is the same reported by your phpinfo() ?
 [2002-05-07 09:51 UTC] nixon68 at online dot de
;-)

Yes: /usr/local/lib/php.ini
 [2002-05-07 14:45 UTC] justinlong at strategicnetwork dot org
I encountered the same thing and worked around it by adding 

php_flag register_globals on

in the apache httpd.conf file
 [2002-05-08 04:06 UTC] nixon68 at online dot de
Sorry, if this is a stupid question. But where exactly did you add it in the httpd.conf. I got a syntax error when i added it just somewhere.
 [2002-05-08 04:15 UTC] nixon68 at online dot de
Sorry - the error I recieve when testing the httpd.conf is: "Invalid command 'php_flag', perhaps mis-spelled or defined by a module not included in the server configuration"
 [2002-05-08 04:26 UTC] nixon68 at online dot de
Okay, I finally found the correct place and now it works as supposed. THX
 [2002-06-13 14:55 UTC] sniper@php.net
Can't reproduce and has worked through all versions just fine.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 15:01:56 2024 UTC