Undefined PGCR variables and NOTICE level messages
Database management in a single PHP file
Brought to you by:
jakubvrana
Adminer doesn't seem to check most POST/GET/REQUEST/COOKIE variables, leading to many NOTICE-level messages when using it on a server configured to show E_NOTICE.
We're integrating adminer (single-file) in our GPLv3 LMS Chamilo, and we are aiming at having everything support E_NOTICE level. As such, I wanted to know if there would be interest in a series of PRs focused on that, or if it's something you (developers) consider a loss of time.
Adminer mutes notices by
error_reporting. I'm not interested in changing the code to supportE_NOTICEerror level as it blows the code significantly, makes it less readable and does the checks at the wrong time (only when the code is executed). There are better ways to check if variables are initialized without running the code such as https://code.google.com/archive/p/php-initialized/.How were you able to override the
error_reportingcall that is in the Adminer sources?