We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 426b675 commit 313fe8bCopy full SHA for 313fe8b
2 files changed
interbase.c
@@ -1589,6 +1589,19 @@ PHP_FUNCTION(ibase_gen_id)
1589
RETURN_LONG((zend_long)result);
1590
}
1591
1592
+void fbp_dump_buffer(int len, const unsigned char *buffer){
1593
+ int i;
1594
+ for (i = 0; i < len; i++) {
1595
+ if(buffer[i] < 31 || buffer[i] > 126)
1596
+ php_printf("0x%02x ", buffer[i]);
1597
+ else
1598
+ php_printf("%c", buffer[i]);
1599
+ }
1600
+ if (i > 0) {
1601
+ php_printf("\n");
1602
1603
+}
1604
+
1605
/* }}} */
1606
1607
#endif /* HAVE_IBASE */
php_ibase_includes.h
@@ -203,4 +203,6 @@ void php_ibase_service_minit(INIT_FUNC_ARGS);
203
#define max(a,b) ((a)>(b)?(a):(b))
204
#endif
205
206
+void fbp_dump_buffer(int len, const unsigned char *buffer);
207
208
#endif /* PHP_IBASE_INCLUDES_H */
0 commit comments