[php-src] PR #21050: Fix build warning on LibreSSL

From: Date: Tue, 27 Jan 2026 14:22:38 +0000
Subject: [php-src] PR #21050: Fix build warning on LibreSSL
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34679@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21050 Author: ndossche When trying to build on LibreSSL, I encounter the following build warning (this was observed on master, but applies to 8.4 too): ``` /work/php-src/ext/openssl/openssl.c: In function 'zif_openssl_x509_parse': /work/php-src/ext/openssl/openssl.c:1101:22: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1101 | purp = X509_PURPOSE_get0(i); | ^ /work/php-src/ext/openssl/openssl.c:1110:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1110 | pname = useshortnames ? X509_PURPOSE_get0_sname(purp) : X509_PURPOSE_get0_name(purp); ```

« previous php.git-pulls (#34679) next »