? ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
5 Apr 2020

Summary of Changes

Remove a "development" error_reporting from configuration, as obsolete.
Since php 5.4 error_reporting(-1) and error_reporting(E_ALL) have the same behavior.
See https://www.php.net/manual/en/function.error-reporting

Passing in the value -1 will show every possible error, even when new levels and constants are added in future PHP versions. The E_ALL constant also behaves this way as of PHP 5.4.

Testing Instructions

Code review.

Documentation Changes Required

None

avatar Fedik Fedik - open - 5 Apr 2020
avatar Fedik Fedik - change - 5 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2020
Category Administration com_config Language & Strings
avatar brianteeman
brianteeman - comment - 5 Apr 2020

I have tested this item ? unsuccessfully on 44da919

If your site is set to development before you upgrade (or for testing before you apply this PR) then the configuration.php will still say
public $error_reporting = 'development';
but joomla says system default

image


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28580.
avatar brianteeman brianteeman - test_item - 5 Apr 2020 - Tested unsuccessfully
avatar Fedik
Fedik - comment - 5 Apr 2020

hm yeap,
a little drawback ?

avatar Fedik Fedik - change - 5 Apr 2020
Labels Added: ? ?
avatar Fedik
Fedik - comment - 5 Apr 2020

okay, I made the option disabled, instead of fully removing, for now. It can be removed in future 4.x
screen 2020-04-05 11 44 25 564x72

avatar brianteeman
brianteeman - comment - 5 Apr 2020

I have tested this item successfully on 05af9e2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28580.

avatar brianteeman brianteeman - test_item - 5 Apr 2020 - Tested successfully
avatar wilsonge
wilsonge - comment - 5 Apr 2020

Rather than leaving the option in the list override getData https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_config/src/Model/ApplicationModel.php#L81 similar to what we did for the DB driver being used. Remove the option from the form field - leave the handling code in include.php

avatar Fedik
Fedik - comment - 5 Apr 2020

@wilsonge thanks for a tip, I will look

avatar toivo
toivo - comment - 9 Apr 2020

I have tested this item successfully on 8c6f8eb

Tested in beta1-dev 20200409


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28580.

avatar toivo toivo - test_item - 9 Apr 2020 - Tested successfully
avatar Fedik
Fedik - comment - 11 Apr 2020

I have remove the option from the form, and made override for old value in the model.
Please retest.

avatar toivo
toivo - comment - 11 Apr 2020

I have tested this item successfully on b348012

Tested in beta1-dev of 20200411


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/28580.

avatar toivo toivo - test_item - 11 Apr 2020 - Tested successfully
avatar wilsonge wilsonge - change - 11 Apr 2020
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-04-11 21:29:12
Closed_By wilsonge
avatar wilsonge wilsonge - close - 11 Apr 2020
avatar wilsonge wilsonge - merge - 11 Apr 2020
avatar wilsonge
wilsonge - comment - 11 Apr 2020

Thanks!

Add a Comment

Login with GitHub to post a comment