Skip to content

Moved display error handling to dockerfile#2002

Open
Eric-Wasson wants to merge 3 commits intodevfrom
1251-exception-details
Open

Moved display error handling to dockerfile#2002
Eric-Wasson wants to merge 3 commits intodevfrom
1251-exception-details

Conversation

@Eric-Wasson
Copy link

Related to issue #1251

Only the necessary exception details are already shown (e.g. filename and line number are omitted), but I noticed that the PHP display_errors option is scattered across several files:
Dockerfile: && echo "display_errors = on" >> /usr/local/etc/php/conf.d/custom.ini
ci/server/setup.php:$load = str_replace('ini_set("display_errors", "0");', 'ini_set("display_errors", "1");', $load);
src/inc/startup/include.php:ini_set("display_errors", "0");
src/inc/startup/setup.php:ini_set("display_errors", "0");
src/inc/startup/load.php:ini_set("display_errors", "0");
src/api/v2/index.php:ini_set("display_errors", '1');

Changing the value in only one file may not have the desired effect. So I moved the handling to the ./Dockerfile where it's 1 by default for dev and 0 by default for prod.

@Eric-Wasson Eric-Wasson requested a review from s3inlc March 18, 2026 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement of existing features / Small addition server Hashtopolis API/Server related

Development

Successfully merging this pull request may close these issues.

1 participant