@@ -2207,12 +2207,12 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
22072207 /* the link is not in the persistent list */
22082208 if ((le = zend_hash_str_find_ptr (& EG (persistent_list ), hashed_details , hashed_len )) == NULL ) {
22092209 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 ));
22112211 efree (hashed_details );
22122212 RETURN_FALSE ;
22132213 }
22142214 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 ));
22162216 efree (hashed_details );
22172217 RETURN_FALSE ;
22182218 }
@@ -2282,7 +2282,7 @@ void odbc_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
22822282 RETVAL_RES (db_conn -> res );
22832283 } else { /* non persistent */
22842284 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 ));
22862286 RETURN_FALSE ;
22872287 }
22882288
0 commit comments