Is this broken with PHP7?
Trying to do an install using XAMPP which has installed Apache/2.4.18 (Win32), OpenSSL/1.0.2e and PHP/7.0.6.
I'm at the point where I am adding the DB info to the config fie for the website however after I added the info I tried to connect to the site and I get the following errors Code:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DB_mysql has a deprecated constructor in D:\xampp\htdocs\hlstatsx\includes\class_db.php on line 58 Anybody know what is going on here? |
Re: Is this broken with PHP7?
Afaik "mysql" module had completely dropped from php7.
Heil mysqli! |
Re: Is this broken with PHP7?
|
Re: Is this broken with PHP7?
Hmm, so short of learning php and rewriting things my only choice is to go back to php 5.5.
Guess that's not a huge issue. Thanks all. |
Re: Is this broken with PHP7?
why do people still use mysql when mysqli is available?
|
Re: Is this broken with PHP7?
Quote:
|
Re: Is this broken with PHP7?
Went to an older version of xampp, all working now.
|
Re: Is this broken with PHP7?
Had the same problem some time ago, I did compile the "mysql" module for php7, this is not an ideal solution but it works.
|
Re: Is this broken with PHP7?
https://github.com/kijin/mysql-compat
php.ini auto_prepend_file with this and everything written for the old mysql extension will just work (including HLX:CE) |
Re: Is this broken with PHP7?
Quote:
https://sourceforge.net/projects/mysqlwithmysqli Save file to your stats/include folder. Edit: include/class_db.php Below: Code:
if ( !defined('IN_HLSTATS') ) { die('Do not access this file directly.'); Code:
include 'mysql_mysqli.inc.php'; |
All times are GMT -4. The time now is 13:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.