Bug#861691: postfixadmin 3.0 not compatible with php 7

2017-08-31 Thread Gabriel Filion
Gabriel Filion:
> As this page [0] suggests that function was deprecated in php 5.5 and
> completely removed in php 7, so that means that the postfixadmin
> codebase is not even compatible with PHP 7.

please disregard this comment.. apparently the issue is caused by the
post-install script creating a dbconfig.inc.php file that configures the
database type as "mysql" instead of "mysqli", which triggers the error
that I've seen.

The installation is however not complete because of this issue since
dbconfig-common is unable to create the necessary tables for
postfixadmin and the database is left empty.



signature.asc
Description: OpenPGP digital signature


Bug#861691: postfixadmin 3.0 not compatible with php 7

2017-08-31 Thread Gabriel Filion
I've hit errors now on a fresh install of postfixadmin on stretch with
php 7.0.

The error says "MySQL 3.x / 4.0 functions not available! (php5-mysql
installed?)" although php-mysql *is* installed.

I've looked up in the source code what triggers that error and it's a
test to ensure that function "mysql_connect" is present.

As this page [0] suggests that function was deprecated in php 5.5 and
completely removed in php 7, so that means that the postfixadmin
codebase is not even compatible with PHP 7.

[0]:http://php.net/manual/en/function.mysql-connect.php

So either we need patches to make postfixadmin work with php7, or it
should be marked as completely broken and possibly removed. (I'd prefer
the former if possible, but I don't know the state of the upstream code)



signature.asc
Description: OpenPGP digital signature