#32894 [Opn->Ver]: System defined object exception stack trace errors
| From: | tony2001@php.net | Date: | Tue, 10 May 2005 20:24:11 +0000 |
| Subject: | #32894 [Opn->Ver]: System defined object exception stack trace errors | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-78866@lists.php.net to get a copy of this message | ||
ID: 32894
Updated by: tony2001@php.net
Reported By: scottmattocks@php.net
-Status: Open
+Status: Verified
Bug Type: Class/Object related
Operating System: Linux
PHP Version: 5CVS-2005-04-29 (dev)
Previous Comments:
------------------------------------------------------------------------
[2005-05-02 17:41:45] scottmattocks@php.net
I commented out the PHP-GTK 2 code and uncommented the SimpleXML
example. The same URL can be used to see the code sample:
http://crisscott.com/php_bug.txt
------------------------------------------------------------------------
[2005-04-30 04:31:46] sniper@php.net
Provide a test script which does NOT rely on PHP-GTK2 or
any other external extension.
------------------------------------------------------------------------
[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