Re: Maia on centos 8
jjs - mainphrame <[email protected]>
| Newsgroups | gmane.mail.virus.maiamailguard |
|---|---|
| Message-ID | <CABkzw7zM+iokoHaTbC_0JE65quAxzZ9EJnCYE2SvqJbzMWXe_A@mail.gmail.com> |
Simple test -
OK, I'm going back to basics here with a simple test, comparing Centos 7 &
php-5.4.16 with Centos 8 & php-7.2.11
They both have the same pear MDB2 modules installed. A simple DB connection
test was run on both:
<?php
require_once 'MDB2.php';
$dsn = 'mysqli://test:test@dbserv/test';
$options = array(
'debug' => 2,
'result_buffering' => false,
);
$mdb2 =& MDB2:: connect($dsn, $options);
if (PEAR::isError($mdb2)) {
die($mdb2->getMessage());
} else {
echo "Success!\n";
}
$mdb2->disconnect();
?>
On Centos 7, it simply returns "Success!"
But on Centos 8 it returns this:
PHP Warning: count(): Parameter must be an array or an object that
implements Countable in /usr/share/pear/MDB2.php on line 826
Warning: count(): Parameter must be an array or an object that implements
Countable in /usr/share/pear/MDB2.php on line 826
PHP Notice: Only variables should be assigned by reference in
/root/dbtest.php on line 10
Notice: Only variables should be assigned by reference in /root/dbtest.php
on line 10
Success!
Jake
On Tue, Mar 24, 2020 at 11:46 AM jjs - mainphrame <[email protected]>
wrote:
> Hi folks,
>
> maia works well for me on centos 7, but not on centos 8, with php-7.2
>
> Actually the perl part is golden, and configtest.pl works fine. But the
> php side of things is broken, and configtest.php fails miserably.
>
> It looks the diverging code bases of php, smarty, pear and maia are the
> issue.
>
> Has anybody had any success getting maia running with php-7.2? If so, I'd
> be curious what tweaks you had to make. I found that as installed,
> configtest.php says it can't connect to the database, but tcpdump shows
> that not a single packet gets sent to the specified db server.
>
> If nobody has any new info, I guess I'll have to look at the old code and
> try to figure out what's broken.
>
> Jake
>
_______________________________________________
Maia-users mailing list
[email protected]
http://www.renaissoft.com/cgi-bin/mailman/listinfo/maia-users