Skip to content

Commit c4b1888

Browse files
asgrimnikic
authored andcommitted
Fix bug #71575 removing extra semicolons outside macros
1 parent 5527c5b commit c4b1888

30 files changed

+31
-29
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ PHP NEWS
1313
(setlocale)). (Anatol)
1414
. Fixed bug #71535 (Integer overflow in zend_mm_alloc_heap()). (Dmitry)
1515
. Fixed bug #71470 (Leaked 1 hashtable iterators). (Nikita)
16+
. Fixed bug #71575 (ISO C does not allow extra ‘;’ outside of a function).
17+
(asgrim)
1618

1719
- Curl:
1820
. Fixed bug #71694 (Support constant CURLM_ADDED_ALREADY). (mpyw)

ext/json/php_json.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ ZEND_BEGIN_MODULE_GLOBALS(json)
8585
php_json_error_code error_code;
8686
ZEND_END_MODULE_GLOBALS(json)
8787

88-
PHP_JSON_API ZEND_EXTERN_MODULE_GLOBALS(json);
88+
PHP_JSON_API ZEND_EXTERN_MODULE_GLOBALS(json)
8989
#define JSON_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(json, v)
9090

9191
#if defined(ZTS) && defined(COMPILE_DL_JSON)

ext/pcre/php_pcre.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ ZEND_BEGIN_MODULE_GLOBALS(pcre)
8181
int error_code;
8282
ZEND_END_MODULE_GLOBALS(pcre)
8383

84-
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(pcre);
84+
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(pcre)
8585
#define PCRE_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(pcre, v)
8686

8787
#else

ext/pdo_dblib/php_pdo_dblib_int.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ ZEND_END_MODULE_GLOBALS(dblib)
137137
# define DBLIB_G(v) (dblib_globals.v)
138138
#endif
139139

140-
ZEND_EXTERN_MODULE_GLOBALS(dblib);
140+
ZEND_EXTERN_MODULE_GLOBALS(dblib)
141141

142142
#endif
143143

ext/sockets/php_sockets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ZEND_BEGIN_MODULE_GLOBALS(sockets)
9292
char *strerror_buf;
9393
ZEND_END_MODULE_GLOBALS(sockets)
9494

95-
ZEND_EXTERN_MODULE_GLOBALS(sockets);
95+
ZEND_EXTERN_MODULE_GLOBALS(sockets)
9696
#define SOCKETS_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sockets, v)
9797

9898
enum sockopt_return {

ext/spl/php_spl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ZEND_BEGIN_MODULE_GLOBALS(spl)
6868
int autoload_running;
6969
ZEND_END_MODULE_GLOBALS(spl)
7070

71-
ZEND_EXTERN_MODULE_GLOBALS(spl);
71+
ZEND_EXTERN_MODULE_GLOBALS(spl)
7272
#define SPL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(spl, v)
7373

7474
PHP_FUNCTION(spl_classes);

main/php_output.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ZEND_BEGIN_MODULE_GLOBALS(output)
146146
int flags;
147147
ZEND_END_MODULE_GLOBALS(output)
148148

149-
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(output);
149+
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(output)
150150

151151
/* there should not be a need to use OG() from outside of output.c */
152152
#ifdef ZTS

sapi/phpdbg/phpdbg_bp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "phpdbg_opcode.h"
2727
#include "zend_globals.h"
2828

29-
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
29+
ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
3030

3131
/* {{{ private api functions */
3232
static inline phpdbg_breakbase_t *phpdbg_find_breakpoint_file(zend_op_array*);

sapi/phpdbg/phpdbg_break.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "phpdbg_bp.h"
2727
#include "phpdbg_prompt.h"
2828

29-
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
29+
ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
3030

3131
#define PHPDBG_BREAK_COMMAND_D(f, h, a, m, l, s, flags) \
3232
PHPDBG_COMMAND_D_EXP(f, h, a, m, l, s, &phpdbg_prompt_commands[9], flags)

sapi/phpdbg/phpdbg_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "phpdbg_prompt.h"
2626
#include "phpdbg_io.h"
2727

28-
ZEND_EXTERN_MODULE_GLOBALS(phpdbg);
28+
ZEND_EXTERN_MODULE_GLOBALS(phpdbg)
2929

3030
static inline const char *phpdbg_command_name(const phpdbg_command_t *command, char *buffer) {
3131
size_t pos = 0;

0 commit comments

Comments
 (0)