Doc #54030 [NEW]: getenv() docs don't say what getenv() returns if variable not found

From: Date: Wed, 16 Feb 2011 08:20:56 +0000
Subject: Doc #54030 [NEW]: getenv() docs don't say what getenv() returns if variable not found
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6000@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:getenv() docs don't say what getenv() returns if variable not found Description: ------------ --- From manual page: http://www.php.net/function.getenv --- The getenv() docs don't tell us what getenv() returns if the requested environment variable doesn't exist. They just say: "Returns the value of the environment variable varname, or FALSE on an error." Mmmmmm. But is the requested variable not existing classed an error? Or not? I personally don't think it is. And that a return of NULL in this situation would be best. But what actually happens? Some clarification would be useful. -- Edit bug report at http://bugs.php.net/bug.php?id=54030&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54030&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54030&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54030&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54030&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54030&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54030&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54030&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54030&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54030&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54030&r=support Expected behavior: http://bugs.php.net/fix.php?id=54030&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54030&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54030&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54030&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54030&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54030&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54030&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54030&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54030&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54030&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54030&r=mysqlcfg

« previous php.doc.bugs (#6000) next »