mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix C89 compat
This commit is contained in:
parent
35be4398d1
commit
efaafd45b4
1 changed files with 1 additions and 2 deletions
|
@ -286,8 +286,6 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
|
|||
|
||||
};
|
||||
|
||||
nvers = sizeof(tdsver)/sizeof(tdsver[0]);
|
||||
|
||||
struct pdo_data_src_parser vars[] = {
|
||||
{ "charset", NULL, 0 }
|
||||
,{ "appname", "PHP " PDO_DBLIB_FLAVOUR, 0 }
|
||||
|
@ -298,6 +296,7 @@ static int pdo_dblib_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
|
|||
};
|
||||
|
||||
nvars = sizeof(vars)/sizeof(vars[0]);
|
||||
nvers = sizeof(tdsver)/sizeof(tdsver[0]);
|
||||
|
||||
php_pdo_parse_data_source(dbh->data_source, dbh->data_source_len, vars, nvars);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue