Project

General

Profile

Actions

Regression #14488

open

Extensions directory is not set in ``rc.php_ini_setup``

Added by Marcello Silva Coutinho 8 months ago. Updated 23 days ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
PHP Interpreter
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
24.03
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:

Description

rc.php_ini_setup not checking php version 8.2

--- /root/rc.php_ini_setup 2023-06-19 04:10:57.592644000 0000
++ /etc/rc.php_ini_setup 2023-06-19 04:10:32.037813000 +0000
@ -24,7 +24,9 @
VERSION=$(/bin/cat /etc/version)
MIN_REALMEM_FOR_OPCACHE=512

-if /usr/local/sbin/pkg-static info -e php81; then
if /usr/local/sbin/pkg-static info -e php82; then
EXTENSIONSDIR="/usr/local/lib/php/20220829/"
+elif /usr/local/sbin/pkg-static info -e php81; then
EXTENSIONSDIR="/usr/local/lib/php/20210902/"
elif /usr/local/sbin/pkg-static info -e php74; then
EXTENSIONSDIR="/usr/local/lib/php/20190902/"

Actions #2

Updated by Jim Pingle 8 months ago

I'm not sure we even need to set this anymore. It is using the correct directory already by default.

: php-config --extension-dir
/usr/local/lib/php/20220829
Actions #3

Updated by Marcos M 4 months ago

  • Tracker changed from Bug to Regression
  • Subject changed from rc.php_ini_setup not checking php version 8.2 to rc.php_ini_setup extensions directory is not set
  • Status changed from New to Pull Request Review
  • Assignee set to Marcos M
  • Target version set to 2.8.0
  • Plus Target Version set to 24.03

Looks like extension_dir defaults to the correct path when the value is empty. However, EXTENSIONSDIR is used when loading modules which are not "compiled into php statically"; I'm not sure if there's a case where that would happen normally, but the fix is simple enough to include.

Actions #4

Updated by Marcos M 4 months ago

  • Status changed from Pull Request Review to Feedback

Applied in changeset 132fef021c94f6823af72ff348e061ad5d3bb64c.

Actions #5

Updated by Jim Pingle 23 days ago

  • Subject changed from rc.php_ini_setup extensions directory is not set to Extensions directory is not set in ``rc.php_ini_setup``
Actions

Also available in: Atom PDF