Skip to content

Commit 863294e

Browse files
committed
PHP 8.6: zend_enum.h now mixes code with declarations
1 parent 2993f9c commit 863294e

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

src/lib/var_export_html.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
+----------------------------------------------------------------------+
33
| Xdebug |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2002-2024 Derick Rethans |
5+
| Copyright (c) 2002-2026 Derick Rethans |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 1.01 of the Xdebug license, |
88
| that is bundled with this package in the file LICENSE, and is |
@@ -18,7 +18,14 @@
1818
#include "lib_private.h"
1919
#include "Zend/zend_closures.h"
2020
#if PHP_VERSION_ID >= 80100
21+
# if !defined(_MSC_VER)
22+
# pragma GCC diagnostic push
23+
# pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
24+
# endif
2125
# include "zend_enum.h"
26+
# if !defined(_MSC_VER)
27+
# pragma GCC diagnostic pop
28+
# endif
2229
#endif
2330

2431
ZEND_EXTERN_MODULE_GLOBALS(xdebug)

src/lib/var_export_line.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
+----------------------------------------------------------------------+
33
| Xdebug |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2002-2025 Derick Rethans |
5+
| Copyright (c) 2002-2026 Derick Rethans |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 1.01 of the Xdebug license, |
88
| that is bundled with this package in the file LICENSE, and is |
@@ -18,7 +18,14 @@
1818
#include "ext/standard/php_string.h"
1919
#include "Zend/zend_closures.h"
2020
#if PHP_VERSION_ID >= 80100
21+
# if !defined(_MSC_VER)
22+
# pragma GCC diagnostic push
23+
# pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
24+
# endif
2125
# include "zend_enum.h"
26+
# if !defined(_MSC_VER)
27+
# pragma GCC diagnostic pop
28+
# endif
2229
#endif
2330

2431
#include "var_export_line.h"

src/lib/var_export_text.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
+----------------------------------------------------------------------+
33
| Xdebug |
44
+----------------------------------------------------------------------+
5-
| Copyright (c) 2002-2024 Derick Rethans |
5+
| Copyright (c) 2002-2026 Derick Rethans |
66
+----------------------------------------------------------------------+
77
| This source file is subject to version 1.01 of the Xdebug license, |
88
| that is bundled with this package in the file LICENSE, and is |
@@ -18,7 +18,14 @@
1818
#include "ext/standard/php_string.h"
1919
#include "Zend/zend_closures.h"
2020
#if PHP_VERSION_ID >= 80100
21+
# if !defined(_MSC_VER)
22+
# pragma GCC diagnostic push
23+
# pragma GCC diagnostic ignored "-Wdeclaration-after-statement"
24+
# endif
2125
# include "zend_enum.h"
26+
# if !defined(_MSC_VER)
27+
# pragma GCC diagnostic pop
28+
# endif
2229
#endif
2330

2431

0 commit comments

Comments
 (0)