@@ -2207,12 +2207,12 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
2207
2207
/* the link is not in the persistent list */
2208
2208
if ((le = zend_hash_str_find_ptr (& EG (persistent_list ), hashed_details , hashed_len )) == NULL ) {
2209
2209
if (ODBCG (max_links ) != -1 && ODBCG (num_links ) >= ODBCG (max_links )) {
2210
- php_error_docref (NULL , E_WARNING , "Too many open links (%ld )" , ODBCG (num_links ));
2210
+ php_error_docref (NULL , E_WARNING , "Too many open links (" ZEND_LONG_FMT " )" , ODBCG (num_links ));
2211
2211
efree (hashed_details );
2212
2212
RETURN_FALSE ;
2213
2213
}
2214
2214
if (ODBCG (max_persistent ) != -1 && ODBCG (num_persistent ) >= ODBCG (max_persistent )) {
2215
- php_error_docref (NULL , E_WARNING ,"Too many open persistent links (%ld )" , ODBCG (num_persistent ));
2215
+ php_error_docref (NULL , E_WARNING ,"Too many open persistent links (" ZEND_LONG_FMT " )" , ODBCG (num_persistent ));
2216
2216
efree (hashed_details );
2217
2217
RETURN_FALSE ;
2218
2218
}
@@ -2282,7 +2282,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
2282
2282
RETVAL_RES (db_conn -> res );
2283
2283
} else { /* non persistent */
2284
2284
if (ODBCG (max_links ) != -1 && ODBCG (num_links ) >= ODBCG (max_links )) {
2285
- php_error_docref (NULL , E_WARNING ,"Too many open connections (%ld )" ,ODBCG (num_links ));
2285
+ php_error_docref (NULL , E_WARNING ,"Too many open connections (" ZEND_LONG_FMT " )" ,ODBCG (num_links ));
2286
2286
RETURN_FALSE ;
2287
2287
}
2288
2288
0 commit comments