Frug / AJAX-Chat

A fully customizable web chat implemented in JavaScript, PHP and MySQL which integrates nicely with common forum systems like phpBB, MyBB, FluxBB, SMF and vBulletin. A Flash and Ruby based socket connection can be used to boost performance.
http://frug.github.io/AJAX-Chat/
546 stars 300 forks source link

PHP 7 #219

Closed tigefa4u closed 8 years ago

tigefa4u commented 8 years ago

got this on PHP 7 :dash:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChat has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChat.php on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatDataBase has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatDataBase.php on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatDataBaseMySQL has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLDataBase.php on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatMySQLQuery has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLQuery.php on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatDataBaseMySQLi has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLiDataBase.php on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatMySQLiQuery has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLiQuery.php on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatHTTPHeader has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatHTTPHeader.php on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatLanguage has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatLanguage.php on line 10

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatTemplate has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatTemplate.php on line 11
Database tables created successfully - please delete this file (install.php).
fjwilson commented 8 years ago

If you check the readme.html file it states:

Requirements Server-Side Client-Side PHP >= 5 MySQL >= 4 Ruby >= 1.8 (optional) Enabled JavaScript Enabled Cookies Flash Plugin >= 9 (optional) So the version of PHp you are using is not supported.

On Mon, Dec 28, 2015 at 4:15 AM, sugeng tigefa notifications@github.com wrote:

got this on PHP 7 [image: :dash:]

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChat has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatphp on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatDataBase has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatDataBasephp on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatDataBaseMySQL has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLDataBasephp on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatMySQLQuery has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLQueryphp on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatDataBaseMySQLi has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLiDataBasephp on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatMySQLiQuery has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatMySQLiQueryphp on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatHTTPHeader has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatHTTPHeaderphp on line 11

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatLanguage has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatLanguagephp on line 10

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AJAXChatTemplate has a deprecated constructor in C:\xampp\htdocs\wordpress\chat\lib\class\AJAXChatTemplatephp on line 11 Database tables created successfully - please delete this file (installphp)

— Reply to this email directly or view it on GitHub https://github.com/Frug/AJAX-Chat/issues/219.

tigefa4u commented 8 years ago

it just install.php but smooth on other pages :+1:

Frug commented 8 years ago

It's not really just install.php. You're seeing output on install.php because it sets the error level to E_ALL at the top of that script. Your default error log level is probably set not to display deprecated messages. I will not be supporting php7 until it's released but this is a valid issue. Classes should all use __construct rather than a method with the same name.

Frug commented 8 years ago

You must be using an old version of ajax chat. __construct appears to be used in all those files already.