Bug 41524

Summary: 'GET' and 'POST' Problem with PHP 4.2.2
Product: Documentation Reporter: Andreas Bachmann <bachmann>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Andreas Bachmann 2002-08-10 21:00:05 UTC
'GET' and 'POST' Problem with PHP 4.2.2.

1. Install FreeBSD 4.6-RELEASE (ftp://sunsite.cnlab-switch.ch/mirror/FreeBSD/releases/i386/ISO-IMAGES/4.6/4.6-disc1.iso)
2. Untar ports.tar.gz (ftp://sunsite.cnlab-switch.ch/mirror/FreeBSD/branches/-current/ports.tar.gz)
3. Install Apache 1.3.26 (/usr/ports/www/apache13)
4. Install PHP 4.2.2 (/usr/ports/www/mod_php4)
5. vi /usr/local/www/data/index.php

index.php: <? echo $foo."<br>"; ?>
URL: www.foo.org/index.php?foo=Hello
Browser: <br>

greets

Andreas Bachmann
Comment 1 toasty 2002-08-15 23:03:53 UTC
I believe this is due to the changes in seperating the GET/POST variable
namespace from the main one, starting in PHP 4.2.0.

If you want the old behavior, set "register_globals" to "On" in your
/usr/local/etc/php.ini or modify your program to use the new "SUPERGLOBALS"
system.

http://www.php.net/manual/en/security.registerglobals.php has more
information on this.
Comment 2 Tom Rhodes freebsd_committer freebsd_triage 2002-08-27 18:41:38 UTC
State Changed
From-To: open->closed

This is not a FreeBSD specific problem.  Please take this up with the 
PHP developers at php.net or perhaps the port maintainer.