Changeset 313 for trunk/trax/vendor/trax/php_shell.php
- Timestamp:
- 07/07/09 21:57:06 (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
r310 r313 50 50 function __shell_default_error_handler($errno, $errstr, $errfile, $errline, $errctx) { 51 51 ## ... 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)); 55 54 } 56 55 … … 98 97 if (function_exists("__shell_print_var")) { 99 98 __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(); 103 102 } else { 104 103 var_export($__shell_retval);
