Changeset 310 for trunk/trax/vendor

Show
Ignore:
Timestamp:
03/25/09 13:12:36 (3 years ago)
Author:
john
Message:

updating console

Files:
1 modified

Legend:

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

    r308 r310  
    5050function __shell_default_error_handler($errno, $errstr, $errfile, $errline, $errctx) { 
    5151    ## ... what is this errno again ? 
    52     if ($errno == 2048) return; 
    53    
    54     throw new Exception(sprintf("%s:%d\r\n%s", $errfile, $errline, $errstr)); 
     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)); 
    5555} 
    5656 
     
    9999                    __shell_print_var($__shell_retval, $__shell->getVerbose()); 
    100100                } else { 
    101                     var_export($__shell_retval); 
     101                    if(is_object($__shell_retval) && get_parent_class($__shell_retval) == 'ActiveRecord') { 
     102                        print $__shell_retval; 
     103                    } else { 
     104                        var_export($__shell_retval);                         
     105                    } 
    102106                } 
    103107            }