php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17434 "register_globals = on" does not have any effect
Submitted: 2002-05-26 12:24 UTC Modified: 2002-08-02 23:20 UTC
From: jcelle at adeolis dot com Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.2.1 OS: windows 2000 pro
Private report: No CVE-ID: None
 [2002-05-26 12:24 UTC] jcelle at adeolis dot com
I needed the register_globals turned on to run some ancient scripts.
Even though phpinfo() reports that register_globasl is set to 'On' the variables are never created. $_GET array also seems empty (it's the one who should hold my variables).

A workaround is to switch to a previous version of PHP like 4.1.1.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-26 12:54 UTC] sander@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php

Thank you for your interest in PHP.
 [2002-08-02 22:57 UTC] andre dot studzinski at vtx dot ch
I have the same problem.

Impossible to pass any variable from url's line into php script.

filename.php?id=value

I get "undefined variable" notice and variable est empty.

Also $_get[id] is empty.

Of course, record_globals is set in php.ini

I use Win98 PWS4 PHP4.2.2

There is a bug somwhere.
 [2002-08-02 23:20 UTC] cynic@php.net
the bugs i see:

1) it's $_GET, not $_get
2) it's register_globals, not record_globals
3) this is bound to be a pilot error. can you please:
   a) make sure you have only one php4ts.dll in your system
   b) the right php.ini is used
   c) provide a short self-contained script complete with your php.ini
      *MINUS* comments?
   d) output of phpinfo() stripped off of any html (lynx -dump et. al. come to mind)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 23:01:30 2024 UTC