Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 72d530a0d938ae8ae75094e83054543f > files > 1

php-rrdtool-0-43.mga5.src.rpm

--- rrdtool/rrdtool.c.0000	2005-12-03 13:34:06.000000000 +0000
+++ rrdtool/rrdtool.c	2012-12-12 00:10:27.645311647 +0000
@@ -39,7 +39,7 @@
 ZEND_DECLARE_MODULE_GLOBALS(rrdtool)
  */
  
-function_entry rrdtool_functions[] = {
+zend_function_entry rrdtool_functions[] = {
 	PHP_FE(rrd_graph,				NULL)
 	PHP_FE(rrd_fetch,				NULL)
 	PHP_FE(rrd_error,				NULL)
@@ -122,8 +122,8 @@
 	Creates a graph based on options passed via an array */
 PHP_FUNCTION(rrd_graph)
 {
-	pval *file, *args, *p_argc;
-	pval *entry;
+	zval *file, *args, *p_argc;
+	zval *entry;
 	zval *p_calcpr;
 	HashTable *args_arr;
 	int i, xsize, ysize, argc;
@@ -157,7 +157,7 @@
 
 		for (i = 3; i < argc; i++) 
 		{
-			pval **dataptr;
+			zval **dataptr;
 
 			if ( zend_hash_get_current_data(args_arr, (void *) &dataptr) == FAILURE )
 				continue;
@@ -221,9 +221,8 @@
 	Fetch info from an RRD file */
 PHP_FUNCTION(rrd_fetch)
 {
-	pval *file, *args, *p_argc;
-	pval *entry;
-	pval *p_start, *p_end, *p_step, *p_ds_cnt;
+	zval *file, *args, *p_argc;
+	zval *entry;
 	HashTable *args_arr;
 	zval *p_ds_namv, *p_data;
 	int i, j, argc;
@@ -259,7 +258,7 @@
 
 		for (i = 3; i < argc; i++) 
 		{
-			pval **dataptr;
+			zval **dataptr;
 
 			if ( zend_hash_get_current_data(args_arr, (void *) &dataptr) == FAILURE )
 				continue;
@@ -366,7 +365,7 @@
 	Update an RRD file with values specified */
 PHP_FUNCTION(rrd_update)
 {
-	pval *file, *opt;
+	zval *file, *opt;
 	char **argv;
 
 	if ( rrd_test_error() )
@@ -409,7 +408,7 @@
 	Gets last update time of an RRD file */
 PHP_FUNCTION(rrd_last)
 {
-	pval *file;
+	zval *file;
 	unsigned long retval;
 
 	char **argv = (char **) emalloc(3 * sizeof(char *));
@@ -444,8 +443,8 @@
 	Create an RRD file with the options passed (passed via array) */ 
 PHP_FUNCTION(rrd_create)
 {
-	pval *file, *args, *p_argc;
-	pval *entry;
+	zval *file, *args, *p_argc;
+	zval *entry;
 	char **argv;
 	HashTable *args_arr;
 	int argc, i;
@@ -454,7 +453,7 @@
 		rrd_clear_error();
 
 	if ( ZEND_NUM_ARGS() == 3 && 
-		getParameters(ht, 3, &file, &args, &p_argc) == SUCCESS )
+		zend_get_parameters(ht, 3, &file, &args, &p_argc) == SUCCESS )
 	{
 		if ( args->type != IS_ARRAY )
 		{ 
@@ -478,7 +477,7 @@
 
 		for (i = 3; i < argc; i++) 
 		{
-			pval **dataptr;
+			zval **dataptr;
 
 			if ( zend_hash_get_current_data(args_arr, (void *) &dataptr) == FAILURE )
 				continue;