php8-fpm is crashing with CommonCrypto on 10.11 El Capitan

オープン
#25,450 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, macos, php
領域
backend, security

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
C
スター
41.8k
フォーク
8.6k
平均マージ
2日 15時間
マージ済み PR(30日)
125

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

php/php-src のほかの issue

php/php-src の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。