classes/phing/Phing.php
public static function handlePhpError($level, $message, $file, $line)
    {

        // don't want to print suppressed errors
        if (error_reporting() > 0) {
            if (self::$phpErrorCapture) {
                self::$capturedPhpErrors[] = [
                    'message' => $message,
                    'level' => $level,
                    'line' => $line,
                    'file' => $file
                ];
            } else {
                $message = '[PHP Error] ' . $message;
                $message .= ' [line ' . $line . ' of ' . $file . ']';

                switch ($level) {
                    case E_USER_DEPRECATED:
                    case E_DEPRECATED:
                    case E_STRICT:
                    case E_NOTICE:
                    case E_USER_NOTICE:
                        self::log($message, Project::MSG_VERBOSE);
                        break;
                    case E_WARNING:
                    case E_USER_WARNING:
                        self::log($message, Project::MSG_WARN);
                        break;
                    case E_ERROR:
                    case E_USER_ERROR:
                    default:
                        self::log($message, Project::MSG_ERR);
                } // switch
            } // if phpErrorCapture
        } // if not @
    }
public static function handlePhpError($level, $message, $file, $line)
    {

        // don't want to print suppressed errors
        if (error_reporting() > 0) {
            if (self::$phpErrorCapture) {
                self::$capturedPhpErrors[] = [
                    'message' => $message,
                    'level' => $level,
                    'line' => $line,
                    'file' => $file
                ];
            } else {
                $message = '[PHP Error] ' . $message;
                $message .= ' [line ' . $line . ' of ' . $file . ']';

                switch ($level) {
                    case E_USER_DEPRECATED:
                    case E_DEPRECATED:
                    case E_STRICT:
                    case E_NOTICE:
                    case E_USER_NOTICE:
                        self::log($message, Project::MSG_VERBOSE);
                        break;
                    case E_WARNING:
                    case E_USER_WARNING:
                        self::log($message, Project::MSG_WARN);
                        break;
                    case E_ERROR:
                    case E_USER_ERROR:
                    default:
                        self::log($message, Project::MSG_ERR);
                } // switch
            } // if phpErrorCapture
        } // if not @
    }
public static function handlePhpError ( $ level , $ message , $ file , $ line ) { // don't want to print suppressed errors if ( error_reporting ( ) > 0 ) { if ( self :: $ phpErrorCapture ) { self :: $ capturedPhpErrors [ ] = [ 'message' => $ message , 'level' => $ level , 'line' => $ line , 'file' => $ file ] ; } else { $ message = '[PHP Error] ' . $ message ; $ message .= ' [line ' . $ line . ' of ' . $ file . ']' ; switch ( $ level ) { case E_USER_DEPRECATED : case E_DEPRECATED : case E_STRICT : case E_NOTICE : case E_USER_NOTICE : self :: log ( $ message , Project :: MSG_VERBOSE ) ; break ; case E_WARNING : case E_USER_WARNING : self :: log ( $ message , Project :: MSG_WARN ) ; break ; case E_ERROR : case E_USER_ERROR : default : self :: log ( $ message , Project :: MSG_ERR ) ; } // switch } // if phpErrorCapture } // if not @ }
Error handler for PHP errors encountered during the build.
This uses the logging for the currently configured project.

@param $level
@param string $message
@param $file
@param $line
Error handler for PHP errors encountered during the build . This uses the logging for the currently configured project .