Platform
macOS
Operating system version
macOS Tahoe 26.4
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.28.0 (64)
PHP Version
PHP 7.4.33 (cli) (built: Dec 13 2023 21:52:05) ( NTS )
Bug description
PHP 7.4 ignores it's php.ini file, which Herd creates for him.
Here is output for some commands
herd php --ini
Configuration File (php.ini) Path: /lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
"/Users/***/Library/Application Support/Herd/bin/php" --ini
Configuration File (php.ini) Path: /lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
"/Users/***/Library/Application Support/Herd/bin/php84" --ini
Configuration File (php.ini) Path: /usr/local/etc/php
Loaded Configuration File: (none)
Scan for additional .ini files in: /usr/local/etc/php/conf.d
Additional .ini files parsed: (none)
Steps to reproduce
Install Php 7.4 and try to use composer 2.0.13
Here will be error
[ErrorException]
preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0
If you try to set pcre.jit=0 in ini via Herd GUI, this will take no effect. It simply ignores this file.
Relevant log output
Platform
macOS
Operating system version
macOS Tahoe 26.4
System architecture
ARM64 (M1, M2, etc)
Herd Version
1.28.0 (64)
PHP Version
PHP 7.4.33 (cli) (built: Dec 13 2023 21:52:05) ( NTS )
Bug description
PHP 7.4 ignores it's php.ini file, which Herd creates for him.
Here is output for some commands
herd php --ini
Configuration File (php.ini) Path: /lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
"/Users/***/Library/Application Support/Herd/bin/php" --ini
Configuration File (php.ini) Path: /lib
Loaded Configuration File: (none)
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
"/Users/***/Library/Application Support/Herd/bin/php84" --ini
Configuration File (php.ini) Path: /usr/local/etc/php
Loaded Configuration File: (none)
Scan for additional .ini files in: /usr/local/etc/php/conf.d
Additional .ini files parsed: (none)
Steps to reproduce
Install Php 7.4 and try to use composer 2.0.13
Here will be error
[ErrorException]
preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0
If you try to set pcre.jit=0 in ini via Herd GUI, this will take no effect. It simply ignores this file.
Relevant log output