Comment 8 for bug 614481

Revision history for this message
Calum Mackay (calum-mackay) wrote : Re: phppgadmin uses deprected php commands

I'm not sure about that workaround.

It does not work for me, on lucid, since you cannot use the error_reporting() function in an apache conf file.

I added it instead to /etc/phppgadmin/config.inc.php:

        // per Ubuntu bug 614481
        error_reporting(E_ALL & ~E_DEPRECATED);

and it seems to work.

Note that (~E_DEPRECATED) alone would also turn on E_STRICT, which itself causes further phppgadmin breakage, and is not in any case advised for production systems. E_ALL does not include E_STRICT, so the above should be safer.