File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -435,10 +435,9 @@ PHP_MSHUTDOWN_FUNCTION(dba)
435
435
/* {{{ PHP_MINFO_FUNCTION */
436
436
PHP_MINFO_FUNCTION (dba )
437
437
{
438
- const dba_handler * hptr ;
439
438
smart_str handlers = {0 };
440
439
441
- for ( hptr = handler ; hptr -> name ; hptr ++ ) {
440
+ for ( const dba_handler * hptr = handler ; hptr -> name ; hptr ++ ) {
442
441
smart_str_appends (& handlers , hptr -> name );
443
442
smart_str_appendc (& handlers , ' ' );
444
443
}
@@ -1252,7 +1251,6 @@ PHP_FUNCTION(dba_sync)
1252
1251
/* {{{ List configured database handlers */
1253
1252
PHP_FUNCTION (dba_handlers )
1254
1253
{
1255
- const dba_handler * hptr ;
1256
1254
bool full_info = 0 ;
1257
1255
1258
1256
if (zend_parse_parameters (ZEND_NUM_ARGS (), "|b" , & full_info ) == FAILURE ) {
@@ -1261,7 +1259,7 @@ PHP_FUNCTION(dba_handlers)
1261
1259
1262
1260
array_init (return_value );
1263
1261
1264
- for ( hptr = handler ; hptr -> name ; hptr ++ ) {
1262
+ for ( const dba_handler * hptr = handler ; hptr -> name ; hptr ++ ) {
1265
1263
if (full_info ) {
1266
1264
// TODO: avoid reallocation ???
1267
1265
char * str = hptr -> info (hptr , NULL );
You can’t perform that action at this time.
0 commit comments