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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC