#47473 [Fbk->Opn]: set_error_handler() crashes the
| From: | typo3 at maltejansen dot de | Date: | Mon, 23 Feb 2009 21:59:26 +0000 |
| Subject: | #47473 [Fbk->Opn]: set_error_handler() crashes the | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134137@lists.php.net to get a copy of this message | ||
ID: 47473
User updated by: typo3 at maltejansen dot de
Reported By: typo3 at maltejansen dot de
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Windows Vista
PHP Version: 5.3.0beta1
New Comment:
I'm not so deep in the development of the FLOW3-package. I'm just
developing an other package. The main part is developed on linux or
mac.
The constructor [1] is called twice and second time it seems to crash.
But just calling it twice does not crash it.
Is there a php-function, which shows the content, which was set via
set_error_handler()? I have not found one...
[1]
http://forge.typo3.org/repositories/entry/package-flow3/trunk/Classes/Error/ErrorHandler.php
Previous Comments:
------------------------------------------------------------------------
[2009-02-23 15:41:19] pajoye@php.net
Please provide a small (or the smallest possible script) script to
reproduce your problem.
Do not take it too badly but I do not have the time to fetch and
install Flow3 (or any dependency).
We really need a self contained script to be able to efficiently fix
this bug. It is easy to crash an app but not to create a small script,
and as you know this app better than us... :)
By the way, the SSL certificate for this URL is not valid.
------------------------------------------------------------------------
[2009-02-23 15:31:00] typo3 at maltejansen dot de
Here you can download the source:
https://svn.typo3.org/FLOW3/Distribution/trunk/
Just the set your server to the "Public"-Directory.
And call e.g. http://localhost/ (you should see the welcome screen)
Than call http://localhost/Testing/ (should crash!!!)
The origin of the crash is located in in the constructor of
Packages/Global/FLOW3/Classes/Error/ErrorHandler.php.
http://localhost/Testing/ ->
Packages/Global/Testing/Classes/Controller/DefaultController.php
------------------------------------------------------------------------
[2009-02-23 09:30:18] pajoye@php.net
\php53vc6ts>php ..\php53snapvc9\47473.php
Warning: set_error_handler() expects the argument
(ErrorHandler::handleError) to be a valid callback in
C:\Users\pierre\Documents\test\php53snapvc9\47473.php on line 4
I suppose it happens in typo3 under certain conditions and not simply
with the code you gave here. Please provide a full script to reproduce
the crash.
------------------------------------------------------------------------
[2009-02-23 09:23:10] typo3 at maltejansen dot de
I just tested it with
PHP 5.3 - Windows x86 VC6 (thread safe)) [12.41MB] - 2009-Feb-23
08:00:00
and it still crashes...
By the way, the crash is confirmed by several other users:
http://lists.netfielders.de/pipermail/typo3-project-5_0-general/2009-February/001878.html
------------------------------------------------------------------------
[2009-02-22 21:24:33] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/47473
--
Edit this bug report at http://bugs.php.net/?id=47473&edit=1