Req #35313 [Opn->Csd]: Missing argument for function line number export

From: Date: Fri, 30 Dec 2016 23:24:00 +0000
Subject: Req #35313 [Opn->Csd]: Missing argument for function line number export
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206254@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=35313&edit=1 ID: 35313 Updated by: cmb@php.net Reported by: ross at golder dot org Summary: Missing argument for function line number export -Status: Open +Status: Closed Type: Feature/Change Request -Package: Feature/Change Request +Package: Scripting Engine problem Operating System: All PHP Version: 5.0.5 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This is implemented as of PHP 5.1.0, see <https://3v4l.org/3jgVB>. Previous Comments: ------------------------------------------------------------------------ [2005-11-21 16:24:19] ross at golder dot org I wouldn't say this is a feature request - we're reporting something that isn't working as expected. ------------------------------------------------------------------------ [2005-11-21 16:00:42] sniper@php.net Missing features are not bugs. Reclassified. ------------------------------------------------------------------------ [2005-11-21 15:25:05] ross at golder dot org Description: ------------ [Exactly as per #17904. I am unable to re-open or add a comment to a 'bogus' report, and was told it would be best just to open a new bug report. See #17904 for background and a 'reproduce code' section. The following is the comment I would like to have added to the original report regarding the issue.] I agree with David - it should be reporting the calling line number, so the developer can fix it the caller, not the line of the callee (the function definition) of which there is nothing wrong. I have to disagree with Derrick's comments when closing this report. Normal developers shouldn't have to install third-party libraries or write their own stacktrace code just to find out where they're calling their own functions incorrectly! It's annoyed the hell out of me (and others I know who uses PHP) for years now, and I *really* can't believe (having just found out today) that this is considered 'expected behaviour' and a 'bogus' bug report! Derrick, are you sure? Any chance we could get this re-opened and/or fixed properly? Thanks. Expected result: ---------------- The 'missing argument' warning/error should report the line number of the caller, not the function ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=35313&edit=1

« previous php.bugs (#206254) next »