Skip to content

Commit

Permalink
Merge branch 'PHP-8.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 24, 2024
2 parents 14b0862 + 0d9f3a5 commit 2a3dae1
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Zend/zend_operators.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@
#include <stdint.h>

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
/**
* On FreeBSD with ubsan/clang we get the following:
* `/usr/include/machine/ieeefp.h:161:17: runtime error: left shift of negative value -1`
* `SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /usr/include/machine/ieeefp.h:161:17`
* ...
* `_newcw |= (~_m << FP_MSKS_OFF) & FP_MSKS_FLD;`
**/
# if __has_feature(undefined_behavior_sanitizer) && defined(__FreeBSD__) && defined(__clang__)
# pragma clang attribute push (__attribute__((no_sanitize("undefined"))), apply_to=function)
# endif
# include <ieeefp.h>
# if __has_feature(undefined_behavior_sanitizer) && defined(__FreeBSD__) && defined(__clang__)
# pragma clang attribute pop
# endif
#endif

#include "zend_portability.h"
Expand Down

0 comments on commit 2a3dae1

Please sign in to comment.