php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44843 Example error
Submitted: 2008-04-26 18:50 UTC Modified: 2008-04-26 22:17 UTC
Votes:1
Avg. Score:2.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pablo at gundari dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pablo at gundari dot net
New email:
PHP Version: OS:

 

 [2008-04-26 18:50 UTC] pablo at gundari dot net
Description:
------------
Just a little correction, Example #1 (of reserved.variables.environment.php manual page) would't proceduce any output because the "user" enviroment variable must be "USER".

So the example must be: 

<?php
echo 'My username is ' .$_ENV["USER"] . '!';
?>



Expected result:
----------------
Print: My username is SOMEUSER!

Actual result:
--------------
Print: My username is !

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-04-26 22:17 UTC] felipe@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of felipe
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=e42f9f66c32b7d4f73681ec9cede13f0954720d5
Log: - Fixed bug #44843 (Example error)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 14:00:02 2026 UTC