Patch pdo_4d-php55 for PDO_4D Bug #65356
Patch version 2013-07-30 07:42 UTC
Return to Bug #65356 |
Download this patch
Patch Revisions:
Developer: t.pulzer@kniel.de
@@ -41,7 +41,9 @@
/* {{{ phpinfo logo definitions */
-#include "php_logos.h"
+#if PHP_VERSION_ID < 50500
+ #include "php_logos.h"
+#endif
static unsigned char pdo_4d_logo[] = {
@@ -87,7 +89,11 @@
/* {{{ PHP_MINIT_FUNCTION */
PHP_MINIT_FUNCTION(pdo_4d)
{
- php_register_info_logo("PDO_4D_LOGO_ID", "", pdo_4d_logo, 778);
+ #if PHP_VERSION_ID < 50500
+ /* register the logo */
+ php_register_info_logo("PDO_4D_LOGO_ID", "", pdo_4d_logo, 778);
+ #endif
+
REGISTER_INI_ENTRIES();
/* add your stuff here */
@@ -108,7 +114,9 @@
/* {{{ PHP_MSHUTDOWN_FUNCTION */
PHP_MSHUTDOWN_FUNCTION(pdo_4d)
{
- php_unregister_info_logo("PDO_4D_LOGO_ID");
+ #if PHP_VERSION_ID < 50500
+ php_unregister_info_logo("PDO_4D_LOGO_ID");
+ #endif
php_pdo_unregister_driver(&pdo_4d_driver);
UNREGISTER_INI_ENTRIES();
|