PHPonTrax
[ class tree: PHPonTrax ] [ index: PHPonTrax ] [ all elements ]

Procedural File: php_shell.php

Source Location: /vendor/trax/php_shell.php



Page Details:

(PHP 5)



Tags:

version:  $Id:$
copyright:  

(c) 2005 John Peterson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

filesource:  Source Code for this file


Includes:

require_once("php_shell/shell.php") [line 33]






__shell_default_error_handler [line 50]

void __shell_default_error_handler( integer $errno, string $errstr, string $errfile, interger $errline, mixed $errctx)

default error-handler

Instead of printing the NOTICE or WARNING from php we wan't the turn non-FATAL messages into exceptions and handle them in our own way.

you can set your own error-handler by createing a function named __shell_error_handler




Parameters

integer   $errno   Error-Number
string   $errstr   Error-Message
string   $errfile   Filename where the error was raised
interger   $errline   Line-Number in the File
mixed   $errctx   ...
[ Top ]



Documentation generated on Mon, 21 May 2007 22:28:44 -0600 by phpDocumentor 1.3.2