#32894 [NEW]: System defined object exception stack trace errors
| From: | scottmattocks@php.net | Date: | Fri, 29 Apr 2005 19:37:06 +0000 |
| Subject: | #32894 [NEW]: System defined object exception stack trace errors | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-78453@lists.php.net to get a copy of this message | ||
From: scottmattocks@php.net
Operating system: Linux
PHP version: 5CVS-2005-04-29 (dev)
PHP Bug Type: Class/Object related
Bug description: System defined object exception stack trace errors
Description:
------------
If an exception is thrown by a system class (not user defined), the stack
trace is not correct. At least one level is missing and parameters from
the method which threw the exception are displayed as having been passed
to the function/method which called the method that threw the exception.
Reproduce code:
---------------
http://crisscott.com/php_bug.txt
Expected result:
----------------
Warning: GtkMenuItem::__construct() requires exactly 0 arguments, 1 given
in /home/scott/php-gtk2_test.php on line 14
could not construct GtkMenuItem object
#0 /home/scott/php-gtk2_test.php(14): GtkMenuItem('GtkMenuItem')
#1 /home/scott/php-gtk2_test.php(35): func0('func0')
#2 {main}
TestClass __construct problem.
#0 /home/scott/php-gtk2_test.php(28): TestClass->__construct('TestClass')
#1 /home/scott/php-gtk2_test.php(35): func0('func0')
#2 {main}
Actual result:
--------------
Warning: GtkMenuItem::__construct() requires exactly 0 arguments, 1 given
in /home/scott/php-gtk2_test.php on line 14
could not construct GtkMenuItem object
#0 /home/scott/php-gtk2_test.php(28): func0('GtkMenuItem')
#1 {main}
TestClass __construct problem.
#0 /home/scott/php-gtk2_test.php(28): TestClass->__construct('TestClass')
#1 /home/scott/php-gtk2_test.php(35): func0('func0')
#2 {main}
--
Edit bug report at http://bugs.php.net/?id=32894&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32894&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32894&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32894&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32894&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32894&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32894&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32894&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32894&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32894&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32894&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32894&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32894&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32894&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32894&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32894&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32894&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32894&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32894&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32894&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32894&r=mysqlcfg