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

Bug #10242 getCurrentURL should also use getenv()
Submitted: 2007-03-02 11:24 UTC
From: gemal Assigned: avb
Status: Closed Package: HTML_Menu (version 2.1.3)
PHP Version: 5.2.1 OS: All
Roadmaps: (Not assigned)    
Subscription  


 [2007-03-02 11:24 UTC] gemal (Henrik Gemal)
Description: ------------ Currently the function getCurrentURL doesn't use getenv to look up the variable. So this wont work: putenv("CU=power.php"); $menu->setURLEnvVar("CU"); echo $menu->getCurrentURL(); This is because getCurrentURL only look in $_SERVER and $GLOBALS. It should look at getenv first. Something like: getenv($this->_urlEnvVar);

Comments

 [2007-05-18 20:57 UTC] avb (Alexey Borzov)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.