[php-src] Issue #20075: Is PHP doing anything weird to not use LD_PRELOAD allocators?
| From: | dkarlovi | Date: | Mon, 06 Oct 2025 10:51:51 +0000 |
| Subject: | [php-src] Issue #20075: Is PHP doing anything weird to not use LD_PRELOAD allocators? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250995@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/20075
Author: dkarlovi
### Description
I'm trying to reproduce findings made in this article:
https://www.linkedin.com/pulse/testing-alternative-c-memory-allocators-pt-2-musl-mystery-gomes/
and pointed out by @dunglas in https://github.com/php/php-src/issues/13877#issuecomment-2036673553
in this super basic reproducer repo here:
https://github.com/dkarlovi/mimalloc-php
Since the numbers basically don't change, I'm not sure if PHP is simply not using the
preloaded allocator and it actually needs to be built in like shown in the example by Kevin?
https://github.com/php/frankenphp/pull/666/files#diff-548dba7efda4c2f29f4eeb946db1da090e10308817056d55077d71146f8ad0ebR190-R198
/cc @andypost @arnaud-lb I know you're somewhat interested in the topic.
### PHP Version
```plain
PHP 8.4.13 (cli) (built: Sep 24 2025 23:26:41) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.13, Copyright (c) Zend Technologies
with Zend OPcache v8.4.13, Copyright (c), by Zend Technologies
```
### Operating System
Docker