Skip to content

ini_set() doesn't seem to work with php-fpm #45

@shinsenter

Description

@shinsenter

Issue description

As the title, ini_set() doesn't seem to work with php-fpm.
I tried confirming it with the following images:

  • serversideup/php:7.3-fpm-apache
  • serversideup/php:7.4-fpm-apache
  • serversideup/php:8.0-fpm-apache
  • serversideup/php:8.1-fpm-apache

Environment

  • Opertaing System Version: macOS 12
  • Docker Version: Docker version 20.10.12, build e91ed57

Steps to reproduce the issue

  1. Create a index.php
  2. Use below code:
<?php
echo ini_get('display_errors');

if (ini_get('display_errors')) {
    ini_set('display_errors', '0');
} else {
    ini_set('display_errors', '1');
}

echo ini_get('display_errors');
  1. ini_set returns false, display_errors value unchanged.

What is expected?

Value of display_errors will change.

Additional details / screenshots

I have not changed any settings from your Docker images.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions