687b7c
diff -up rrdtool-1.4.4/php4/rrdtool.c.php54 rrdtool-1.4.4/php4/rrdtool.c
687b7c
--- rrdtool-1.4.4/php4/rrdtool.c.php54	2011-12-29 08:57:00.790784347 +0100
687b7c
+++ rrdtool-1.4.4/php4/rrdtool.c	2011-12-29 09:00:55.960794927 +0100
687b7c
@@ -39,7 +39,7 @@
687b7c
 ZEND_DECLARE_MODULE_GLOBALS(rrdtool)
687b7c
  */
687b7c
 
687b7c
-function_entry rrdtool_functions[] = {
687b7c
+zend_function_entry rrdtool_functions[] = {
687b7c
 	PHP_FE(rrd_graph, NULL)
687b7c
 	PHP_FE(rrd_fetch, NULL)
687b7c
 	PHP_FE(rrd_error, NULL)
687b7c
@@ -119,8 +119,8 @@ PHP_MINFO_FUNCTION(rrdtool)
687b7c
 	Creates a graph based on options passed via an array */
687b7c
 PHP_FUNCTION(rrd_graph)
687b7c
 {
687b7c
-	pval *file, *args, *p_argc;
687b7c
-	pval *entry;
687b7c
+	zval *file, *args, *p_argc;
687b7c
+	zval *entry;
687b7c
 	zval *p_calcpr;
687b7c
 	HashTable *args_arr;
687b7c
 	int i, xsize, ysize, argc;
687b7c
@@ -155,7 +155,7 @@ PHP_FUNCTION(rrd_graph)
687b7c
 
687b7c
 		for (i = 3; i < argc; i++) 
687b7c
 		{
687b7c
-			pval **dataptr;
687b7c
+			zval **dataptr;
687b7c
 
687b7c
 			if ( zend_hash_get_current_data(args_arr, (void *) &dataptr) == FAILURE )
687b7c
 				continue;
687b7c
@@ -216,9 +216,8 @@ PHP_FUNCTION(rrd_graph)
687b7c
 	Fetch info from an RRD file */
687b7c
 PHP_FUNCTION(rrd_fetch)
687b7c
 {
687b7c
-	pval *file, *args, *p_argc;
687b7c
-	pval *entry;
687b7c
-	pval *p_start, *p_end, *p_step, *p_ds_cnt;
687b7c
+	zval *file, *args, *p_argc;
687b7c
+	zval *entry;
687b7c
 	HashTable *args_arr;
687b7c
 	zval *p_ds_namv, *p_data;
687b7c
 	int i, j, argc;
687b7c
@@ -254,7 +253,7 @@ PHP_FUNCTION(rrd_fetch)
687b7c
 
687b7c
 		for (i = 3; i < argc; i++) 
687b7c
 		{
687b7c
-			pval **dataptr;
687b7c
+			zval **dataptr;
687b7c
 
687b7c
 			if ( zend_hash_get_current_data(args_arr, (void *) &dataptr) == FAILURE )
687b7c
 				continue;
687b7c
@@ -361,7 +360,7 @@ PHP_FUNCTION(rrd_clear_error)
687b7c
 	Update an RRD file with values specified */
687b7c
 PHP_FUNCTION(rrd_update)
687b7c
 {
687b7c
-	pval *file, *opt;
687b7c
+	zval *file, *opt;
687b7c
 	char **argv;
687b7c
 
687b7c
 	if ( rrd_test_error() )
687b7c
@@ -404,7 +403,7 @@ PHP_FUNCTION(rrd_update)
687b7c
 	Gets last update time of an RRD file */
687b7c
 PHP_FUNCTION(rrd_last)
687b7c
 {
687b7c
-	pval *file;
687b7c
+	zval *file;
687b7c
 	unsigned long retval;
687b7c
 
687b7c
 	char **argv = (char **) emalloc(3 * sizeof(char *));
687b7c
@@ -439,8 +438,8 @@ PHP_FUNCTION(rrd_last)
687b7c
 	Create an RRD file with the options passed (passed via array) */ 
687b7c
 PHP_FUNCTION(rrd_create)
687b7c
 {
687b7c
-	pval *file, *args, *p_argc;
687b7c
-	pval *entry;
687b7c
+	zval *file, *args, *p_argc;
687b7c
+	zval *entry;
687b7c
 	char **argv;
687b7c
 	HashTable *args_arr;
687b7c
 	int argc, i;
687b7c
@@ -449,7 +448,7 @@ PHP_FUNCTION(rrd_create)
687b7c
 		rrd_clear_error();
687b7c
 
687b7c
 	if ( ZEND_NUM_ARGS() == 3 && 
687b7c
-		getParameters(ht, 3, &file, &args, &p_argc) == SUCCESS )
687b7c
+		zend_get_parameters(ht, 3, &file, &args, &p_argc) == SUCCESS )
687b7c
 	{
687b7c
 		if ( args->type != IS_ARRAY )
687b7c
 		{ 
687b7c
@@ -473,7 +472,7 @@ PHP_FUNCTION(rrd_create)
687b7c
 
687b7c
 		for (i = 3; i < argc; i++) 
687b7c
 		{
687b7c
-			pval **dataptr;
687b7c
+			zval **dataptr;
687b7c
 
687b7c
 			if ( zend_hash_get_current_data(args_arr, (void *) &dataptr) == FAILURE )
687b7c
 				continue;