[php-src] Issue #12621: browscap segmentation fault when configured in the vhost
| From: | simonberger | Date: | Mon, 06 Nov 2023 14:57:49 +0000 |
| Subject: | [php-src] Issue #12621: browscap segmentation fault when configured in the vhost | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245749@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12621
Author: simonberger
### Description
browscap is changable (only) in mode
PHP_INI_SYSTEM. We enabled it with file
lite_php_browscap.ini via php_admin_value in the vhost.
This resulted in a Segmentation Fault in almost every request (rarely worked in the first 1, 2 tries
after a restart). The get_browser call always provided a correct output, the
segmentation fault happens in the deconstruction process.
```
AH00052: child pid 54 exit signal Segmentation fault (11)
```
In the process of finding the reason we enabled it via php.ini directly instead and it always works
that way.
I assume it might be a problem because of the context this setting is enabled in, I am not sure the
bug is in the right place here tho.
### PHP Version
PHP 8.2.12
### Operating System
_No response_