Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 3.7.2

Bug #20100 incorrect Function mysql() has been deprecated report
Submitted: 2013-10-15 20:54 UTC
From: addshore Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version Unknown)
PHP Version: Irrelevant OS: scrutinizer-ci
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 19 = ?

 
 [2013-10-15 20:54 UTC] addshore (Add Shore)
Description: ------------ As can be seen at https://scrutinizer- ci.com/g/wikimedia/mediawiki-extensions- WikibaseDatabase/issues/files/src/MySQL/MySQLIndexSqlBuil der.php?filter%5Blabels%5D%5B%5D=2 the line 'namespace Wikibase\Database\MySQL;' seems to trigger the message 'Function mysql() has been deprecated' Expected result: ---------------- I would not expect this to happen

Comments

 [2013-10-23 07:51 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
I couldn't replicate the mysql error specifically (probably a php version difference) but I think I replicated the general issue anyway. I've made a fix here: https://github.com/squizlabs/PHP_CodeSniffer/commit/f8fbe3b57b610d8a395da5fd6a 949e9194b5bc08