Show
Ignore:
Timestamp:
07/07/09 21:57:06 (3 years ago)
Author:
john
Message:

updates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/php_shell.php

    r310 r313  
    5050function __shell_default_error_handler($errno, $errstr, $errfile, $errline, $errctx) { 
    5151    ## ... what is this errno again ? 
    52     if(in_array($errno, array(8,2048))) return; 
    53     print sprintf("\r\nError No:%d - %s", $errno, $errstr); 
    54     #throw new Exception(sprintf("%s:%d\r\n%s", $errfile, $errline, $errstr)); 
     52    if ($errno == 2048 || $errno == 8) return;   
     53    throw new Exception(sprintf("%s:%d\r\n%s", $errfile, $errline, $errstr)); 
    5554} 
    5655 
     
    9897                if (function_exists("__shell_print_var")) { 
    9998                    __shell_print_var($__shell_retval, $__shell->getVerbose()); 
    100                 } else { 
    101                     if(is_object($__shell_retval) && get_parent_class($__shell_retval) == 'ActiveRecord') { 
    102                         print $__shell_retval; 
     99                } else {    
     100                    if(is_object($__shell_retval) && method_exists($__shell_retval, '__toString')) { 
     101                        echo "Class:".get_class($__shell_retval)."\n".$__shell_retval->__toString(); 
    103102                    } else { 
    104103                        var_export($__shell_retval);