Browse Source

fix build

migration/RELEASE_1_0_0
Antony Dovgal 21 years ago
parent
commit
d7393d2d02
  1. 2
      ext/pdo/pdo_dbh.c
  2. 7
      ext/pdo/php_pdo_driver.h

2
ext/pdo/pdo_dbh.c

@ -72,7 +72,7 @@ void pdo_raise_impl_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, const char *sqlstate
if (dbh->error_mode != PDO_ERRMODE_EXCEPTION) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", message);
} else {
zval *ex, info;
zval *ex, *info;
zend_class_entry *def_ex = php_pdo_get_exception_base(1 TSRMLS_CC), *pdo_ex = php_pdo_get_exception(TSRMLS_C);
MAKE_STD_ZVAL(ex);

7
ext/pdo/php_pdo_driver.h

@ -489,6 +489,13 @@ struct _pdo_dbh_t {
zend_class_entry *def_stmt_ce;
zval *def_stmt_ctor_args;
/* when calling PDO::query(), we need to keep the error
* context from the statement around until we next clear it.
* This will allow us to report the correct error message
* when PDO::query() fails */
pdo_stmt_t *query_stmt;
zval query_stmt_zval;
};
/* describes a column */

Loading…
Cancel
Save