Skip to content

Commit 5d8a0fd

Browse files
author
Popa Adrian Marius
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fix firebird bug #60947 , tested and now it prints the header page information from database
2 parents c02aa08 + 97f4fc2 commit 5d8a0fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/interbase/ibase_service.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ static void _php_ibase_service_query(INTERNAL_FUNCTION_PARAMETERS, /* {{{ */
322322
}
323323
result += 2;
324324
*(result+line_len) = 0;
325-
snprintf(heap_p, heap_buf_size - (heap_buf - heap_p), "%s\n", result);
326-
heap_p += line_len +2;
325+
snprintf(heap_p, heap_buf_size - (heap_p - heap_buf), "%s\n", result);
326+
heap_p += line_len +1;
327327
goto query_loop; /* repeat until result is exhausted */
328328

329329
case isc_info_svc_server_version:

0 commit comments

Comments
 (0)