php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15919 variables_order not works well
Submitted: 2002-03-06 20:21 UTC Modified: 2002-10-24 17:49 UTC
From: mars at abcsolution dot co dot kr Assigned: rasmus (profile)
Status: Not a bug Package: PHP options/info functions
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
30 - 15 = ?
Subscribe to this entry?

 
 [2002-03-06 20:21 UTC] mars at abcsolution dot co dot kr
One of my PHP pages uses a global variable which gets its value from either HTTP GET data or cookies.

Yesterday I upgraded PHP 4.1.2 from 4.0.1 and found that cookie value prevails GET value for that global variable after hours of debugging. Of course I have variables_order option set to "GPCS".

Why variables_order does not work correctly after I upgrade?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-06 22:12 UTC] yohgaki@php.net
It's known issue.

I guess Rasmus is working for it (not?)
Rasmus, I'll assign to you for now, since you have been posted the issue 
to php-dev.
 [2002-10-24 17:49 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

According to the documentation in the php.ini file:
Registration is done from left to right, newer values override older values.

Meaning that if your variables_order is set to GPCS, the cookie variable with the same name as a GET variable would overwrite the value set by the GET variable.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC