php8-fpm is crashing with CommonCrypto on 10.11 El Capitan

Offen
#25,450 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
62/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c, macos, php
Bereich
backend, security

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
C
Sterne
41.8k
Forks
8.6k
Ø Merge
2 T. 15 Std.
Gemergte PRs (30 T.)
125

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus php/php-src

Alle Issues in php/php-src

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.