Changeset 310 for trunk/trax/vendor
- Timestamp:
- 03/25/09 13:12:36 (3 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/php_shell.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/php_shell.php
r308 r310 50 50 function __shell_default_error_handler($errno, $errstr, $errfile, $errline, $errctx) { 51 51 ## ... 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)); 55 55 } 56 56 … … 99 99 __shell_print_var($__shell_retval, $__shell->getVerbose()); 100 100 } 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 } 102 106 } 103 107 }
