|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-04-26 09:44 UTC] helly@php.net
  [2003-04-27 09:41 UTC] james at grickle dot org
  [2010-12-21 19:16 UTC] johannes@php.net
 
-Status:  Open
+Status:  Bogus
-Package: Feature/Change Request
+Package: *General Issues
  [2010-12-21 19:16 UTC] johannes@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
Hello, I would like to request something along the lines of macros. It would help a lot when you need to run __LINE__ and/or __FILE__ constants through a function. A simplified version of what I'd need them for. Currently I have: errOut([severity], [message]); Every time I use errOut I have __FILE__ and __LINE__ in the message: define(FATAL, 7); errOut(FATAL, __FILE__ . ": " . __LINE__ . ": Database error bla bla bla"); It could be shortened up by something like this: mdefine("DOERR", "errOut($1, __FILE__ . ': ' . __LINE__ . ': ' . $2)"); DOERR(FATAL,"Database Error bla bla bla"); This could be used for more vital things than that of course. Anything along those lines would be great. Thank You, James Harr