packages: php-pecl-runkit/php52-api-warnings.patch - more warning fixes

glen glen at pld-linux.org
Sun Jun 6 18:43:22 CEST 2010


Author: glen                         Date: Sun Jun  6 16:43:22 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- more warning fixes

---- Files affected:
packages/php-pecl-runkit:
   php52-api-warnings.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/php-pecl-runkit/php52-api-warnings.patch
diff -u packages/php-pecl-runkit/php52-api-warnings.patch:1.1 packages/php-pecl-runkit/php52-api-warnings.patch:1.2
--- packages/php-pecl-runkit/php52-api-warnings.patch:1.1	Sun Jun  6 17:31:37 2010
+++ packages/php-pecl-runkit/php52-api-warnings.patch	Sun Jun  6 18:43:17 2010
@@ -40,3 +40,34 @@
  		zend_hash_destroy(RUNKIT_G(replaced_internal_functions));
  		FREE_HASHTABLE(RUNKIT_G(replaced_internal_functions));
  		RUNKIT_G(replaced_internal_functions) = NULL;
+--- php-pecl-runkit-0.9/php_runkit.h~	2010-06-06 18:31:09.000000000 +0300
++++ php-pecl-runkit-0.9/php_runkit.h	2010-06-06 19:37:40.356209521 +0300
+@@ -173,7 +173,7 @@
+ #define PHP_RUNKIT_DECL_STRING_PARAM(p)			char *p; int p##_len;
+ #define PHP_RUNKIT_STRING_SPEC					"s"
+ #define PHP_RUNKIT_STRING_PARAM(p)				&p, &p##_len
+-#define PHP_RUNKIT_STRTOLOWER(p)				php_strtolower(&p, &p##_len)
++#define PHP_RUNKIT_STRTOLOWER(p)				php_strtolower(p, p##_len)
+ #define PHP_RUNKIT_STRING_LEN(param,addtl)		(param##_len + (addtl))
+ #define PHP_RUNKIT_STRING_TYPE(param)			IS_STRING
+ #define PHP_RUNKIT_HASH_FIND(hash,param,ppvar)	zend_hash_find(hash, param, param##_len + 1, (void**)ppvar)
+--- php-pecl-runkit-0.9/runkit_functions.c~	2010-06-06 19:42:18.000000000 +0300
++++ php-pecl-runkit-0.9/runkit_functions.c	2010-06-06 19:42:20.332432692 +0300
+@@ -95,7 +95,7 @@
+ 
+ 			if (!RUNKIT_G(misplaced_internal_functions)) {
+ 				ALLOC_HASHTABLE(RUNKIT_G(misplaced_internal_functions));
+-				zend_hash_init(RUNKIT_G(misplaced_internal_functions), 4, NULL, php_runkit_hash_key_dtor, 0);
++				zend_hash_init(RUNKIT_G(misplaced_internal_functions), 4, NULL, (dtor_func_t) php_runkit_hash_key_dtor, 0);
+ 			}
+ 			hash_key.nKeyLength = fname_len + 1;
+ 			PHP_RUNKIT_HASH_KEY(&hash_key) = estrndup(fname, PHP_RUNKIT_HASH_KEYLEN(&hash_key));
+@@ -468,7 +468,7 @@
+ 		PHP_RUNKIT_HASH_KEY(&hash_key) = estrndup(dfunc, PHP_RUNKIT_HASH_KEYLEN(&hash_key));
+ 		if (!RUNKIT_G(misplaced_internal_functions)) {
+ 			ALLOC_HASHTABLE(RUNKIT_G(misplaced_internal_functions));
+-			zend_hash_init(RUNKIT_G(misplaced_internal_functions), 4, NULL, php_runkit_hash_key_dtor, 0);
++			zend_hash_init(RUNKIT_G(misplaced_internal_functions), 4, NULL, (dtor_func_t)php_runkit_hash_key_dtor, 0);
+ 		}
+ 		zend_hash_next_index_insert(RUNKIT_G(misplaced_internal_functions), (void*)&hash_key, sizeof(zend_hash_key), NULL);
+ 	}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pecl-runkit/php52-api-warnings.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list