php8-fpm is crashing with CommonCrypto on 10.11 El Capitan

Aberta
#25,450 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
62/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
c, macos, php
Domínio
backend, security

Direção de pesquisa

Start with ext/random/csprng.c and the HAVE_COMMONCRYPTO_COMMONRANDOM_H condition mentioned in the report. Reproduce the first id call crash with php8.4-fpm on macOS 10.11, then compare behavior with the reported conditional disabled. Done means the crash is resolved without breaking random-number generation on the supported systems.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Bug Status: Needs Triage
Description

Hello,
please look at the ticket https://trac.macports.org/ticket/74304
php8.4-fpm will compile without errors, but crash on the first id call (I run Nginx)
summary, replacing #if HAVE_COMMONCRYPTO_COMMONRANDOM_H with #if 0 in /ext/random/csprng.c heals the crash.
From my understanding this is necessary before 10.12
I tried 8.3 and 8.4 the patch works for both.
cheers
Matthias

PHP Version
PHP 8.4.27 (cli) (built: Oct 22 2026 16:13:55) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.27, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.27, Copyright (c), by Zend Technologies
note: php-fpm is the same version.
Operating System

macOS 10.11 elCapitan

Linguagem predominante
C
Estrelas
41.8k
Forks
8.6k
Merge médio
2d 15h
PRs com merge (30d)
125

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de php/php-src

Todas as issues de php/php-src

Issues semelhantes

Mais issues de C

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.