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
 [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: Fri Mar 29 05:01:28 2024 UTC