Fix phpPgAdmin error reporting

This commit is contained in:
cytopia 2020-11-07 16:57:40 +01:00
parent 9ff5006d1a
commit d471794f72
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
3 changed files with 13 additions and 10 deletions

View File

@ -10,7 +10,7 @@
include_once('./lang/translations.php');
// Set error reporting level to max
error_reporting(E_ALL);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Application name
$appName = 'phpPgAdmin';

View File

@ -10,7 +10,7 @@
include_once('./lang/translations.php');
// Set error reporting level to max
error_reporting(E_ALL);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Application name
$appName = 'phpPgAdmin';

View File

@ -169,14 +169,17 @@ phpPgAdmin requires some adjustments to work with the Devilbox intranet. See bel
```
`libraries/lib.inc.php`
```diff
- if (!ini_get('session.auto_start')) {
- session_name('PPA_ID');
- session_start();
- }
+ if (!strlen(session_id()) > 0) {
+ session_name('PPA_ID');
+ session_start();
+ }
- error_reporting(E_ALL);
+ error_reporting(E_ERROR | E_WARNING | E_PARSE);
- if (!ini_get('session.auto_start')) {
- session_name('PPA_ID');
- session_start();
- }
+ if (!strlen(session_id()) > 0) {
+ session_name('PPA_ID');
+ session_start();
+ }
```
### Tests