php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #35313 Missing argument for function line number export
Submitted: 2005-11-21 15:25 UTC Modified: 2016-12-30 23:24 UTC
From: ross at golder dot org Assigned: cmb (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.5 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ross at golder dot org
New email:
PHP Version: OS:

 

 [2005-11-21 15:25 UTC] 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 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-21 16:00 UTC] sniper@php.net
Missing features are not bugs. Reclassified.
 [2005-11-21 16:24 UTC] ross at golder dot org
I wouldn't say this is a feature request - we're reporting something that isn't working as expected.
 [2016-12-30 23:24 UTC] cmb@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: Scripting Engine problem -Assigned To: +Assigned To: cmb
 [2016-12-30 23:24 UTC] cmb@php.net
This is implemented as of PHP 5.1.0, see <https://3v4l.org/3jgVB>.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Dec 05 01:00:02 2025 UTC