Diff for /embedaddon/php/ext/sybase_ct/php_sybase_ct.c between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2013/07/22 01:32:10 version 1.1.1.4, 2013/10/14 08:02:42
Line 1121  static int php_sybase_finish_results(sybase_result *re Line 1121  static int php_sybase_finish_results(sybase_result *re
                                 break;                                  break;
   
                         case CS_CMD_FAIL:                          case CS_CMD_FAIL:
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  Command failed, cancelling rest");                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  Command failed, canceling rest");
                                 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);                                  ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
                                 fail = 1;                                  fail = 1;
                                 break;                                  break;
Line 1131  static int php_sybase_finish_results(sybase_result *re Line 1131  static int php_sybase_finish_results(sybase_result *re
                         case CS_PARAM_RESULT:                          case CS_PARAM_RESULT:
                         case CS_ROW_RESULT:                          case CS_ROW_RESULT:
                                 /* Unexpected results, cancel them. */                                  /* Unexpected results, cancel them. */
                                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase:  Unexpected results, cancelling current");                                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase:  Unexpected results, canceling current");
                                 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_CURRENT);                                  ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_CURRENT);
                                 break;                                  break;
   
Line 1141  static int php_sybase_finish_results(sybase_result *re Line 1141  static int php_sybase_finish_results(sybase_result *re
                                 break;                                  break;
   
                         default:                          default:
                                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase:  Unexpected results, cancelling all");                                php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Sybase:  Unexpected results, canceling all");
                                 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);                                  ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
                                 break;                                  break;
                 }                  }
Line 1696  PHP_FUNCTION(sybase_free_result) Line 1696  PHP_FUNCTION(sybase_free_result)
                   
         /* Did we fetch up until the end? */          /* Did we fetch up until the end? */
         if (result->last_retcode != CS_END_DATA && result->last_retcode != CS_END_RESULTS) {          if (result->last_retcode != CS_END_DATA && result->last_retcode != CS_END_RESULTS) {
                /* php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  Cancelling the rest of the results"); */                /* php_error_docref(NULL TSRMLS_CC, E_WARNING, "Sybase:  canceling the rest of the results"); */
                 ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);                  ct_cancel(NULL, result->sybase_ptr->cmd, CS_CANCEL_ALL);
                 php_sybase_finish_results(result TSRMLS_CC);                  php_sybase_finish_results(result TSRMLS_CC);
         }          }

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>