php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7220 Error Report on Function Arguments
Submitted: 2000-10-15 11:38 UTC Modified: 2006-05-29 22:48 UTC
From: beckett at ductape dot net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.0.* OS: *
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: beckett at ductape dot net
New email:
PHP Version: OS:

 

 [2000-10-15 11:38 UTC] beckett at ductape dot net
function bob($arg1, $arg2) {
   ;
}

bob(4);
bob(5,2);

i.e., PHP will falselpy report the error with bob(4) in funcion Bob (i.e., line 1)
instead of bob(4) i.e., line 5.

This is quite annoying when tracking down function calls that have an
incorrect number of arguments


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-24 12:38 UTC] jmoore@php.net
Not really a bug.. its the expected behaviour. Changing to feature request.

James
 [2002-12-04 10:37 UTC] philip@php.net
This sounds like a decent request, how about having the error report both locations?
 [2006-05-29 22:48 UTC] helly@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

Fixed in 5.1.0
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 07:01:27 2025 UTC