php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch fb_interpret for PDO Firebird Bug #66071Patch version 2013-11-10 05:40 UTC Return to Bug #66071 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2013-11-10 05:40 UTC | 2013-11-09 07:08 UTCDeveloper: slavb18@gmail.com--- ext/pdo_firebird/firebird_driver.c.orig 2013-09-18 09:48:57.000000000 +0400 +++ ext/pdo_firebird/firebird_driver.c 2013-11-09 10:54:21.000000000 +0400 +++ ext/pdo_firebird/firebird_driver.c 2013-11-10 09:34:15.000000000 +0400 @@ -607,14 +607,14 @@ static int pdo_firebird_fetch_error_func(pdo_dbh_t *dbh, pdo_stmt_t *stmt, zval *info TSRMLS_DC) /* {{{ */ { pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data; if (sqlcode) { add_next_index_long(info, sqlcode); - while ((l = isc_interprete(&buf[i],&s))) { + while ((l = fb_interpret(&buf[i],(sizeof(buf)-i-2),&s))) { + while ((sizeof(buf)>(i+2))&&(l = fb_interpret(&buf[i],(sizeof(buf)-i-2),&s))) { i += l; strcpy(&buf[i++], " "); } @@ -697,8 +697,8 @@ |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Apr 25 06:01:35 2024 UTC |