php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54150
Patch pdo_firebird.c.patch revision 2011-03-03 15:11 UTC by preeves at ibphoenix dot com

Patch pdo_firebird.c.patch for PDO related Bug #54150

Patch version 2011-03-03 15:11 UTC

Return to Bug #54150 | Download this patch
Patch Revisions:

Developer: preeves@ibphoenix.com

92a93
> 	char tmp[64], *s;
94a96,134
> 	php_info_print_table_row(2, "Firebird/InterBase Support",
> #ifdef COMPILE_DL_PDO_FIREBIRD
> 		"dynamic");
> #else
> 		"static");
> #endif
> 
> #ifdef FB_API_VER
> 	snprintf( (s = tmp), sizeof(tmp), "Firebird API version %d", FB_API_VER);
> #elif (SQLDA_CURRENT_VERSION > 1)
> 	s =  "Interbase 7.0 and up";
> #elif !defined(DSC_null)
> 	s = "Interbase 6";
> #else
> 	s = "Firebird 1.0";
> #endif
> 	php_info_print_table_row(2, "Compile-time Client Library Version", s);
> 
> #if defined(__GNUC__) || defined(PHP_WIN32)
> 	do {
> 		info_func_t info_func = NULL;
> #ifdef __GNUC__
> 		info_func = (info_func_t)dlsym(RTLD_DEFAULT, "isc_get_client_version");
> #else
> 		HMODULE l = GetModuleHandle("fbclient");
> 
> 		if (!l && !(l = GetModuleHandle("gds32"))) {
> 			break;
> 		}
> 		info_func = (info_func_t)GetProcAddress(l, "isc_get_client_version");
> #endif
> 		if (info_func) {
> 			info_func(s = tmp);
> 		} else {
> 			s = "Firebird 1.0/Interbase 6";
> 		}
> 		php_info_print_table_row(2, "Run-time Client Library Version", s);
> 	} while (0);
> #endif
95a136,140
> 
>         /* Maybe add ini file support at a later date
> 	DISPLAY_INI_ENTRIES();
>         */
> 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 18:01:30 2024 UTC