#32894 [Opn->Fbk]: System defined object exception stack trace errors
| From: | sniper@php.net | Date: | Sat, 30 Apr 2005 02:31:47 +0000 |
| Subject: | #32894 [Opn->Fbk]: System defined object exception stack trace errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78458@lists.php.net to get a copy of this message | ||
ID: 32894
Updated by: sniper@php.net
Reported By: scottmattocks@php.net
-Status: Open
+Status: Feedback
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5CVS-2005-04-29 (dev)
New Comment:
Provide a test script which does NOT rely on PHP-GTK2 or
any other external extension.
Previous Comments:
------------------------------------------------------------------------
[2005-04-29 21:37:05] scottmattocks@php.net
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 this bug report at http://bugs.php.net/?id=32894&edit=1