Defranco,

Should report if you are in development mode (debug more than 0).
That is what that condition does.

So, just increase the debug level and the E_NOTICE's will be showed.


Regards,

On Wed, Nov 19, 2008 at 9:39 AM, Defranco <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I'm running console for test suites & custom shells and just noticed
> that it will not report any E_NOTICE (like for example 'undefined
> index') in console output or log files even debug is set to 3.
>
> Shouldn't console report E_NOTICE? at least while running test suite?
>
> I've changed /cake/libs/configure.php, commenting out error_reporting
> (0)  in order to make it output E_NOTICE:
>
> /cake/libs/configure.php (Line  271):
>
>                if (isset($config['debug'])) {
>                        if ($_this->debug) {
>                                error_reporting(E_ALL);
>
>                                if (function_exists('ini_set')) {
>                                        ini_set('display_errors', 1);
>                                }
>
>                                if (!class_exists('Debugger')) {
>                                        require LIBS . 'debugger.php';
>                                }
>                                if (!class_exists('CakeLog')) {
>                                        require LIBS . 'cake_log.php';
>                                }
>                                Configure::write('log', LOG_NOTICE);
>                        } else {
>                                // removed by defranco: error_reporting(0);
>                                Configure::write('log', LOG_NOTICE);
>                        }
>                }
>
>
> Now it is outputting E_NOTICE on console.
>
> But is there any cleaner solution for this?
>
> Should I report it as a bug?
>
> Kind Regards
>
> Defranco
> >
>


-- 
Renan Gonçalves aka renan.saddam
Software Engineer - CakePHP Core Developer
Cell Phone: +55 11 8633 6018
MSN: [EMAIL PROTECTED]
São Paulo - SP/Brazil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to