From: ross at golder dot org Operating system: All PHP version: 5.0.5 PHP Bug Type: Scripting Engine problem Bug description: Missing argument for function line number report
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 bug report at http://bugs.php.net/?id=35313&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35313&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35313&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35313&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35313&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35313&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35313&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35313&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35313&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35313&r=support Expected behavior: http://bugs.php.net/fix.php?id=35313&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35313&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35313&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35313&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35313&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35313&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35313&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35313&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35313&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35313&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35313&r=mysqlcfg
