Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.15

Bug #1447 use $_SERVER instead of $HTTP_SERVER_VARS
Submitted: 2004-05-19 22:05 UTC
From: danielc Assigned: richard
Status: Closed Package: Net_URL
PHP Version: 4.3.6 OS: Win
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


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 : 31 + 19 = ?

 
 [2004-05-19 22:05 UTC] danielc
Description: ------------ I'm working on pearweb on my development server. I ran into an issue with Net_URL. I keep register_long_arrays off in my php.ini, but Net_URL requires it to be on because $HTTP_SERVER_VARS is used. As I'm sure you know, the recommended ini config has register_long_arrays off. May I suggest changing those references to $_SERVER, please? The $_SERVER superglobal was added in PHP 4.1.0. PEAR's base requirement is now PHP 4.2.0. If you're concerned about the change and want to _ensure_ compatibility, you can do: if (!isset($_SERVER)) { $_SERVER = $HTTP_SERVER_VARS; } Thanks for your consideration.

Comments

 [2004-06-05 15:14 UTC] richard at phpguru dot org
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/packages.php