File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -1589,19 +1589,27 @@ PHP_FUNCTION(ibase_gen_id)
15891589 RETURN_LONG ((zend_long )result );
15901590}
15911591
1592+ #if PHP_DEBUG
15921593void 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- }
1594+ int i ;
1595+ for (i = 0 ; i < len ; i ++ ) {
1596+ if (buffer [i ] < 32 || buffer [i ] > 126 )
1597+ php_printf ("0x%02x " , buffer [i ]);
1598+ else
1599+ php_printf ("%c" , buffer [i ]);
1600+ }
1601+ if (i > 0 ) {
1602+ php_printf ("\n" );
1603+ }
16031604}
16041605
1606+ void fbp_dump_buffer_raw (int len , const unsigned char * buffer ){
1607+ int i ;
1608+ for (i = 0 ; i < len ; i ++ ) {
1609+ php_printf ("%c" , buffer [i ]);
1610+ }
1611+ }
1612+ #endif
16051613/* }}} */
16061614
16071615#endif /* HAVE_IBASE */
Original file line number Diff line number Diff line change @@ -203,6 +203,9 @@ void php_ibase_service_minit(INIT_FUNC_ARGS);
203203#define max (a ,b ) ((a)>(b)?(a):(b))
204204#endif
205205
206+ #ifdef PHP_DEBUG
206207void fbp_dump_buffer (int len , const unsigned char * buffer );
208+ void fbp_dump_buffer_raw (int len , const unsigned char * buffer );
209+ #endif
207210
208211#endif /* PHP_IBASE_INCLUDES_H */
You can’t perform that action at this time.
0 commit comments