arnaud-lb / php-memory-profiler

Memory profiler for PHP. Helps finding memory leaks in PHP scripts.
MIT License
858 stars 51 forks source link

Add PHP 8.2 & 8.3 to Github Action matrix tests #99

Closed gaelreyrol closed 9 months ago

gaelreyrol commented 9 months ago

This PR add PHP 8.2 & PHP 8.3 to Github Action matrix tests with Ubuntu 22.04 LTS.

Therefore werror must be disabled as well as expect_native because Ubuntu 22.04 uses glibc 2.34 where malloc hooks functions have been removed.

glibc NEWS file:

  • The deprecated functions malloc_get_state and malloc_set_state have been moved from the core C library into libc_malloc_debug.so. Legacy applications that still use these functions will now need to preload libc_malloc_debug.so in their environment using the LD_PRELOAD environment variable.
  • The deprecated memory allocation hooks malloc_hook, __realloc_hook, memalign_hook and __free_hook are now removed from the API. Compatibility symbols are present to support legacy programs but new applications can no longer link to these symbols. These hooks no longer have any effect on glibc functionality. The malloc debugging DSO libc_malloc_debug.so currently supports hooks and can be preloaded to get this functionality back for older programs. However this is a transitional measure and may be removed in a future release of the GNU C Library. Users may port away from these hooks by writing and preloading their own malloc interposition library.
arnaud-lb commented 9 months ago

Thank you! I removed the "No support for malloc hooks" warning since it's expected now, and I re-enabled -Werror in checks.