Bug #79161 [Opn->Fbk]: ini_set causes 500 error with no error text

From: Date: Thu, 23 Jan 2020 15:46:23 +0000
Subject: Bug #79161 [Opn->Fbk]: ini_set causes 500 error with no error text
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225072@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79161&edit=1 ID: 79161 Updated by: sjon@php.net Reported by: martin dot barker at thisisbeacon dot com Summary: ini_set causes 500 error with no error text -Status: Open +Status: Feedback Type: Bug Package: FPM related Operating System: Linux ip-10-1-28-252 4.15.0-1051 PHP Version: 7.4.2 Block user comment: N Private report: N New Comment: Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. additionally you could have a look at the error_log setting as it might provide more information. You should also try disabling any extensions to see if that helps Previous Comments: ------------------------------------------------------------------------ [2020-01-23 14:02:27] martin dot barker at thisisbeacon dot com Description: ------------ for some reason, ini_set in FPM is causing a 500 error with absolutely no error reporting, So I'm running PHP 7.4.2 via nginx using the PHP socket, this also happened with PHP 7.4.1 ``` index index.html index.htm index.php; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; } ``` Test script: --------------- using phpMyAdmin Stable branch added ini_set("display_errors", true); to config.ini.php above the blowfish secret var set. set error_report = E_ALL & display_errors = On to the php/7.4/php.ini then restarted php-fpm service php7.4-fpm restart Expected result: ---------------- either error that ini_set is not allowed, or for the page to load and PHP to have accepted the ini_set directive. Actual result: -------------- I just get a blank white screen for a HTTP 500 error, absolutely no error information. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=79161&edit=1

« previous php.bugs (#225072) next »