Skip to content

Commit d87fd35

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
# Conflicts: # NEWS
2 parents 140a257 + 836e6fa commit d87fd35

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ PHP NEWS
99
15 Aug 2024, PHP 8.3.11
1010

1111
- Core:
12+
. Fixed bug GH-15408 (MSan false-positve on zend_max_execution_timer).
13+
(zeriyoshi)
1214
. Fixed bug GH-15020 (Memory leak in Zend/Optimizer/escape_analysis.c).
1315
(nielsdos)
1416
. Fixed bug GH-15023 (Memory leak in Zend/zend_ini.c). (nielsdos)

Zend/zend_max_execution_timer.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,14 @@
2424
#include <sys/syscall.h>
2525
#include <sys/types.h>
2626

27+
#include "zend.h"
28+
#include "zend_globals.h"
29+
#include "zend_portability.h"
30+
2731
#if __has_feature(memory_sanitizer)
2832
# include <sanitizer/msan_interface.h>
2933
#endif
3034

31-
#include "zend.h"
32-
#include "zend_globals.h"
33-
3435
// Musl Libc defines this macro, glibc does not
3536
// According to "man 2 timer_create" this field should always be available, but it's not: https://sourceware.org/bugzilla/show_bug.cgi?id=27417
3637
# ifndef sigev_notify_thread_id
@@ -53,8 +54,8 @@ ZEND_API void zend_max_execution_timer_init(void) /* {{{ */
5354

5455
#if __has_feature(memory_sanitizer)
5556
/* MSan does not intercept timer_create() */
56-
__msan_unpoison(&EG(max_execution_timer_timer),
57-
sizeof(EG(max_execution_timer_timer)));
57+
__msan_unpoison(&EG(max_execution_timer_timer),
58+
sizeof(EG(max_execution_timer_timer)));
5859
#endif
5960

6061
// Measure wall time instead of CPU time as originally planned now that it is possible https://github.com/php/php-src/pull/6504#issuecomment-1370303727

0 commit comments

Comments
 (0)