Skip to content

Commit ae1b7bf

Browse files
committed
@fix warnings compiling in maintainer mode. (Stig)
Fix warnings compiling in maintainer mode. Install DB/common.php and DB/mysql.php on "make install". # We still have a warning from http_config.h:97. Rasmus? :-)
1 parent 2aaece2 commit ae1b7bf

File tree

9 files changed

+16
-7
lines changed

9 files changed

+16
-7
lines changed

ext/mysql/php_mysql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS,int persistent)
367367
#endif
368368
char *user,*passwd,*host,*socket=NULL,*tmp;
369369
char *hashed_details;
370-
int hashed_details_length,port;
370+
int hashed_details_length,port = MYSQL_PORT;
371371
MYSQL *mysql;
372372
MySLS_FETCH();
373373
PLS_FETCH();

ext/pcre/php_pcre.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ PHP_FUNCTION(preg_split);
5151
PHP_FUNCTION(preg_quote);
5252
PHP_FUNCTION(preg_grep);
5353

54+
char *_php_pcre_replace(char *regex, char *subject, char *replace);
55+
5456
extern zend_module_entry pcre_module_entry;
5557
#define pcre_module_ptr &pcre_module_entry
5658

ext/session/php_session.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ PHP_FUNCTION(session_set_save_handler);
118118
#define PS(v) (ps_globals->v)
119119
#define PSLS_FETCH() php_ps_globals *ps_globals = ts_resource(ps_globals_id)
120120
#else
121-
#define PSLS_D
121+
#define PSLS_D void
122122
#define PSLS_DC
123123
#define PSLS_C
124124
#define PSLS_CC
@@ -153,6 +153,8 @@ void session_adapt_uris(const char *, uint, char **, uint *);
153153
#define session_adapt_uris(a,b,c,d) do { } while(0)
154154
#endif
155155

156+
void _php_session_auto_start(void *data);
157+
156158
#if HAVE_WDDX
157159
#define WDDX_SERIALIZER
158160
#include "ext/wddx/php_wddx_api.h"

ext/session/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ PS_SERIALIZER_DECODE_FUNC(wddx)
316316

317317
#endif
318318

319-
static void php_session_track_init()
319+
static void php_session_track_init(void)
320320
{
321321
PSLS_FETCH();
322322
ELS_FETCH();

ext/standard/fsock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ typedef struct {
9393
#define FG(v) (fsock_globals->v)
9494
#define FLS_FETCH() php_fsock_globals *fsock_globals = ts_resource(fsock_globals_id)
9595
#else
96-
#define FLS_D
96+
#define FLS_D void
9797
#define FLS_DC
9898
#define FLS_C
9999
#define FLS_CC

ext/standard/php_array.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ PHP_FUNCTION(array_reverse);
7777
PHP_FUNCTION(array_pad);
7878
PHP_FUNCTION(array_flip);
7979

80+
HashTable* _phpi_splice(HashTable *, int, int, zval ***, int, HashTable **);
81+
int multisort_compare(const void *a, const void *b);
8082

8183
#define phpext_array_ptr array_module_ptr
8284
#endif /* _PHP_ARRAY_H */

ext/standard/php_metaphone.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#ifndef _php_metaphone_h
2222
#define _php_metaphone_h
2323

24+
char Lookahead(char *word, int how_far);
2425
extern zend_module_entry metaphone_module_entry;
2526
#define phpext_metaphone_ptr &metaphone_module_entry
2627

main.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ PHPAPI int php_request_startup(CLS_D ELS_DC PLS_DC SLS_DC);
3232
PHPAPI void php_request_shutdown(void *dummy);
3333
PHPAPI void php_request_shutdown_for_exec(void *dummy);
3434
PHPAPI int php_module_startup(sapi_module_struct *sf);
35-
PHPAPI void php_module_shutdown();
36-
PHPAPI void php_module_shutdown_for_exec();
35+
PHPAPI void php_module_shutdown(void);
36+
PHPAPI void php_module_shutdown_for_exec(void);
3737
PHPAPI int php_module_shutdown_wrapper(sapi_module_struct *sapi_globals);
3838

3939
PHPAPI void php_execute_script(zend_file_handle *primary_file CLS_DC ELS_DC PLS_DC);

pear/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ pear_DBdir=$(prefix)/lib/php/DB
66
install-data-local:
77
-$(mkinstalldirs) $(peardir) $(pear_DBdir) && \
88
$(INSTALL_DATA) $(srcdir)/DB.php $(peardir) && \
9-
$(INSTALL_DATA) $(srcdir)/DB/odbc.php $(pear_DBdir)
9+
$(INSTALL_DATA) $(srcdir)/DB/common.php $(pear_DBdir) && \
10+
$(INSTALL_DATA) $(srcdir)/DB/odbc.php $(pear_DBdir) && \
11+
$(INSTALL_DATA) $(srcdir)/DB/mysql.php $(pear_DBdir)

0 commit comments

Comments
 (0)