コード例 #1
0
ファイル: Core.php プロジェクト: BlessySoftwares/anvelocom
/**
 * @deprecated Use Shopp::debug_caller()
 **/
function debug_caller()
{
    return Shopp::debug_caller();
}
コード例 #2
0
ファイル: Error.php プロジェクト: jonathandavis/shopp
 /**
  * Reports PHP generated errors to the Shopp error system
  *
  * @author Jonathan Davis
  * @since 1.0
  *
  * @param int $number The error type
  * @param string $message The PHP error message
  * @param string $file The file the error occurred in
  * @param int $line The line number the error occurred at in the file
  * @return boolean
  **/
 public function php($number, $message, $file, $line)
 {
     if (false === strpos($file, SHOPP_PATH)) {
         return true;
     }
     if (self::typehint($number, $message)) {
         return true;
     }
     $debug = '';
     if (defined('SHOPP_DEBUG') && SHOPP_DEBUG) {
         $debug = sprintf(" [%s, line %d]", basename($file), $line);
     }
     new ShoppError($message . $debug . ' ' . Shopp::debug_caller(), 'php_error', SHOPP_PHP_ERR, array('file' => $file, 'line' => $line, 'phperror' => $number));
     if (E_USER_ERROR == $number) {
         return false;
     }
     // Always show fatal errors
     return true;
 }