Blame SOURCES/rrdtool-1.4.7-php55.patch

cd0fd5
--- rrdtool-1.4.7/php4/rrdtool.c.orig	2013-03-22 14:54:18.520877577 +0100
cd0fd5
+++ rrdtool-1.4.7/php4/rrdtool.c	2013-03-22 14:59:23.056303502 +0100
cd0fd5
@@ -20,13 +20,11 @@
cd0fd5
 
cd0fd5
 /* PHP Includes */
cd0fd5
 #include "php.h"
cd0fd5
-#include "php_logos.h"
cd0fd5
 #include "ext/standard/info.h"
cd0fd5
 #include "SAPI.h"
cd0fd5
 
cd0fd5
 /* rrdtool includes */
cd0fd5
 #include "php_rrdtool.h"
cd0fd5
-#include "rrdtool_logo.h"
cd0fd5
 #include <rrd.h>
cd0fd5
 
cd0fd5
 #ifdef HAVE_CONFIG_H
cd0fd5
@@ -48,7 +46,6 @@
cd0fd5
 	PHP_FE(rrd_last, NULL)
cd0fd5
 	PHP_FE(rrd_create, NULL)
cd0fd5
 	PHP_FE(rrdtool_info, NULL)
cd0fd5
-	PHP_FE(rrdtool_logo_guid, NULL)
cd0fd5
 	{NULL, NULL, NULL}
cd0fd5
 };
cd0fd5
 
cd0fd5
@@ -83,8 +80,6 @@
cd0fd5
 /* {{{ PHP_MINIT_FUNCTION */
cd0fd5
 PHP_MINIT_FUNCTION(rrdtool)
cd0fd5
 {
cd0fd5
-	php_register_info_logo(RRDTOOL_LOGO_GUID   , "image/gif", rrdtool_logo   , sizeof(rrdtool_logo));
cd0fd5
-	
cd0fd5
 	return SUCCESS;
cd0fd5
 }
cd0fd5
 /* }}} */
cd0fd5
@@ -92,8 +87,6 @@
cd0fd5
 /* {{{ PHP_MSHUTDOWN_FUNCTION */
cd0fd5
 PHP_MSHUTDOWN_FUNCTION(rrdtool)
cd0fd5
 {
cd0fd5
-	php_unregister_info_logo(RRDTOOL_LOGO_GUID);
cd0fd5
-	
cd0fd5
 	return SUCCESS;
cd0fd5
 }
cd0fd5
 /* }}} */
cd0fd5
@@ -102,11 +95,6 @@
cd0fd5
 PHP_MINFO_FUNCTION(rrdtool)
cd0fd5
 {
cd0fd5
 	php_info_print_box_start(1);
cd0fd5
-	PUTS("
cd0fd5
-	if (SG(request_info).request_uri) {
cd0fd5
-		PUTS(SG(request_info).request_uri);
cd0fd5
-	}
cd0fd5
-	PUTS("?="RRDTOOL_LOGO_GUID"\" alt=\"ClamAV logo\" />\n");
cd0fd5
 	php_printf("

rrdtool Version %s

\n", PHP_RRD_VERSION_STRING);
cd0fd5
 	php_info_print_box_end();
cd0fd5
 	php_info_print_table_start();
cd0fd5
@@ -548,11 +536,6 @@
cd0fd5
 	PUTS("<body>
\n");
cd0fd5
 
cd0fd5
 	php_info_print_box_start(1);
cd0fd5
-	PUTS("
cd0fd5
-	if (SG(request_info).request_uri) {
cd0fd5
-		PUTS(SG(request_info).request_uri);
cd0fd5
-	}
cd0fd5
-	PUTS("?="RRDTOOL_LOGO_GUID"\" alt=\"ClamAV logo\" />\n");
cd0fd5
 	php_printf("

rrdtool Version %s

\n", PHP_RRD_VERSION_STRING);
cd0fd5
 	php_info_print_box_end();
cd0fd5
 	php_info_print_table_start();
cd0fd5
@@ -590,16 +573,6 @@
cd0fd5
 }
cd0fd5
 /* }}} */
cd0fd5
 
cd0fd5
-PHP_FUNCTION(rrdtool_logo_guid)
cd0fd5
-{
cd0fd5
-	if (ZEND_NUM_ARGS() != 0) {
cd0fd5
-		WRONG_PARAM_COUNT;
cd0fd5
-	}
cd0fd5
-
cd0fd5
-	RETURN_STRINGL(RRDTOOL_LOGO_GUID, sizeof(RRDTOOL_LOGO_GUID)-1, 1);
cd0fd5
-}
cd0fd5
-/* }}} */
cd0fd5
-
cd0fd5
 #endif	/* HAVE_RRDTOOL */
cd0fd5
 
cd0fd5
 /*