Gentoo Archives: gentoo-user

From: "Remco Rijnders" <remco@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated
Date: Mon, 26 Oct 2020 00:30:30
Message-Id: X5YYpDZ69AAxaz5Y@settler
In Reply to: [gentoo-user] "mysql_connect() or mysql_query()" deprecated by thelma@sys-concept.com
1 On Sun, Oct 25, 2020 at 05:24:26PM -0600, thelma wrote in
2 <f091a4f7-7769-b1e8-3455-2e6af52dbe9a@×××××××××××.com>:
3 >The function in newer php "mysql_connect() or mysql_query()" were removed but I don't know starting from which version?
4 >
5 >I'm running PHP Version 5.6.33-pl0-gentoo and these function work.
6 >But I upgraded one of my system to php-5.6.40 and I'm getting an error:
7 >
8 >PHP Fatal error: Call to undefined function mysql_connect() in /var/www/catalog/admin/includes/functions/database.php on line 19
9
10 Hi Thelma,
11
12 I think mysql support was not removed between the two versions you
13 mention. The PHP website says "This extension was deprecated in PHP
14 5.5.0, and it was removed in PHP 7.0.0.", which would be a logical
15 point to do this. Could it be that your "use" flags for PHP changed?
16 Make sure to emerge PHP with the mysql use flag to build with mysql
17 database support.
18
19 I hope this helps.
20
21 Kind regards,
22
23 Remco

Replies

Subject Author
Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated thelma@×××××××××××.com