Merge branch 'PHP-8.3' into PHP-8.4

This commit is contained in:
David Carlier 2024-09-25 00:39:46 +01:00
commit 0d9f3a5600
No known key found for this signature in database
GPG Key ID: 8486F847B4B94EF1

View File

@ -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"