|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-01-25 15:20 UTC] nikic@php.net
-Status: Open
+Status: Not a bug
[2015-01-25 15:20 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 09:00:02 2026 UTC |
Description: ------------ Please try to run the following code. As result the following error will be displayed: "Fatal error: Class 'Monolog\Handler\MailHandler' not found in /home/user/project/test/index.php on line 6" If you will try to remove the " extends AbstractProcessingHandler" part the error will not be displayed. This error prevents us to combine multiple classes to single file for performance optimization. Test script: --------------- <?php namespace My\Logger { use Monolog\Handler\MailHandler as BaseMailHandler; class MailHandler extends BaseMailHandler { } } namespace Monolog\Handler { abstract class MailHandler extends AbstractProcessingHandler { } } namespace Monolog\Handler { abstract class AbstractProcessingHandler { } } Expected result: ---------------- No error Actual result: -------------- Fatal error: Class 'Monolog\Handler\MailHandler' not found in /home/user/project/test/index.php on line 6