php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #49152 Additional value $_SERVER
Submitted: 2009-08-04 13:13 UTC Modified: 2009-08-06 13:24 UTC
From: ruediger dot severit at de dot bertrandt dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.3.0 OS: XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
34 + 2 = ?
Subscribe to this entry?

 
 [2009-08-04 13:13 UTC] ruediger dot severit at de dot bertrandt dot com
Description:
------------
It would be nice to have an additional element in the $_SERVER variable which shows the actual line within the script where the command is placed:

e.g:

SOURCE:
print "Debug line $_SERVER['script_line']: $to_be_debugged";

OUTPUT:
Debug line 53: Hello




Reproduce code:
---------------
see description

Expected result:
----------------
see description

Actual result:
--------------
see description

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-04 17:42 UTC] scottmac@php.net
See the __LINE__ constant and you'll also find __FILE__ and __DIR__
 [2009-08-06 13:24 UTC] ruediger dot severit at de dot bertrandt dot com
Thank you.
can be closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 14:01:30 2024 UTC