File php5-warnings.patch of Package php5

--- ext/xmlrpc/xmlrpc-epi-php.c.orig	2010-03-13 21:26:51.000000000 +0100
+++ ext/xmlrpc/xmlrpc-epi-php.c	2010-09-29 04:53:05.660341000 +0200
@@ -171,7 +171,7 @@ typedef struct _xmlrpc_callback_data {
 
 #define ENCODING_KEY     "encoding"
 #define ENCODING_KEY_LEN (sizeof(ENCODING_KEY) - 1)
-#define ENCODING_DEFAULT "iso-8859-1"
+static const char *ENCODING_DEFAULT = "iso-8859-1";
 
 /* value types */
 #define OBJECT_TYPE_ATTR  "xmlrpc_type"
--- Zend/zend_canary.c.orig	2010-09-29 04:53:05.072339000 +0200
+++ Zend/zend_canary.c	2010-09-29 04:53:05.671319000 +0200
@@ -21,6 +21,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <unistd.h>
+#include <time.h>
+#include <fcntl.h>
 
 
 #if SUHOSIN_PATCH
--- TSRM/tsrm_virtual_cwd.c.orig	2010-09-29 04:53:04.977339000 +0200
+++ TSRM/tsrm_virtual_cwd.c	2010-09-29 04:53:05.681342000 +0200
@@ -671,7 +671,7 @@ CWD_API int virtual_file_ex(cwd_state *s
 	char orig_path[MAXPATHLEN];
 	realpath_cache_bucket *bucket;
 	time_t t = 0;
-	int ret;
+	int ret = 0;
 	int use_cache;
 	int use_relative_path = 0;
 #ifdef TSRM_WIN32
openSUSE Build Service is sponsored by