phppgadmin uses deprecated php commands

Bug #614481 reported by Bas van den Dikkenberg
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
phppgadmin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: phppgadmin

System info :
Description: Ubuntu 10.04.1 LTS
Release: 10.04

pakkage info:

phppgadmin:
  Installed: 4.2.2-1ubuntu1
  Candidate: 4.2.2-1ubuntu1
  Version table:
 *** 4.2.2-1ubuntu1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

When i login in to phppgadmin i get these error messages:

( ! ) Deprecated: Function split() is deprecated in /usr/share/phppgadmin/libraries/adodb/drivers/adodb-postgres64.inc.php on line 663
Call Stack
# Time Memory Function Location
1 0.0001 327096 {main}( ) ../redirect.php:0
2 0.0003 327836 include_once( '/usr/share/phppgadmin/libraries/lib.inc.php' ) ../redirect.php:7
3 0.2315 2008680 Misc->getDatabaseAccessor( ) ../lib.inc.php:178
4 0.2317 2010008 Connection->Connection( ) ../Misc.php:328
5 0.3015 2516080 ADOConnection->Connect( ) ../Connection.php:42
6 0.3015 2516168 ADODB_postgres64->_connect( ) ../adodb.inc.php:430

( ! ) Warning: Cannot modify header information - headers already sent by (output started at /usr/share/phppgadmin/libraries/adodb/drivers/adodb-postgres64.inc.php:663) in /usr/share/phppgadmin/classes/Misc.php on line 359
Call Stack
# Time Memory Function Location
1 0.0001 327096 {main}( ) ../redirect.php:0
2 0.8229 5819616 require( '/usr/share/phppgadmin/all_db.php' ) ../redirect.php:21
3 0.8230 5819892 Misc->printHeader( ) ../all_db.php:407
4 0.8231 5820260 header ( ) ../Misc.php:359

Revision history for this message
Bas van den Dikkenberg (bas-dikkenberg) wrote :
Revision history for this message
Bas van den Dikkenberg (bas-dikkenberg) wrote :

screenprint2 is wrondg
file

Revision history for this message
Bas van den Dikkenberg (bas-dikkenberg) wrote :
Revision history for this message
Bas van den Dikkenberg (bas-dikkenberg) wrote :

a Workaround is to add to /etc/phppgadmin/apache.conf

   php_value error_reporting(~E_DEPRECATED)

this suppresses the error messages, but is not the defnitive solution

Revision history for this message
Bas van den Dikkenberg (bas-dikkenberg) wrote :
Changed in phppgadmin (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
Calum Mackay (calum-mackay) wrote :

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.

summary: - phppgadmin uses deprected php commands
+ phppgadmin uses deprecated php commands
tags: added: deprecated
removed: depicrated
Revision history for this message
Calum Mackay (calum-mackay) wrote :

I'd like to request that this bug have a higher priority; for me, at least this completely breaks phppgadmin - without the workaround - as I get a deprecated warning instead of the initial banner page.

Revision history for this message
Benjamin (benjaminx2x) wrote :

The fix is rather simple: updating the package to a 5.x-version of it, as Ubuntu uses PHP 5, not 4 (see http://phppgadmin.sourceforge.net/doku.php?id=gophp5). So to work around, just install the latest stable version manually.

Revision history for this message
Steven (stevenm-wills) wrote :

What is the current status of this? The last update to phpPgAdmin I see was 2013.

Revision history for this message
Jean-Michel Vourgère (jmv-deb) wrote :

Next version will use libphp-adodb rather than bundling a specific version.
Hopefully this will fix that issue.
If not, bug you be reassigned to package libphp-adodb.

Changed in phppgadmin (Ubuntu):
status: Confirmed → Fix Committed
Changed in phppgadmin (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.