Samurai Legend Posted January 21, 2020 Share Posted January 21, 2020 define('djlk34jlk', true, true); -> Throws an error: PHP Deprecation Notice: define(): Declaration of case-insensitive constants is deprecated (8192) Now I searched for how to fix it to be honest I just didn't understand on how to fix it Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted January 21, 2020 Share Posted January 21, 2020 Capitalise it. djlk34jlk -> DJLK34JLK 1 Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted January 21, 2020 Author Share Posted January 21, 2020 Still throws the same error Quote Link to comment Share on other sites More sharing options...
Dave Posted January 21, 2020 Share Posted January 21, 2020 According to the RFC here: https://wiki.php.net/rfc/case_insensitive_constant_deprecation passing the third parameter as true is what's causing the deprecation error. You need to just define the constant without the third argument. <?php define('djlk34jlk', true); 2 Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted January 21, 2020 Share Posted January 21, 2020 10 minutes ago, Dave said: According to the RFC here: https://wiki.php.net/rfc/case_insensitive_constant_deprecation passing the third parameter as true is what's causing the deprecation error. You need to just define the constant without the third argument. <?php define('djlk34jlk', true); <?php define('djlk34jlk', true); I forgot define accepted a 3rd arg! Never saw the point in it though. 3 Quote Link to comment Share on other sites More sharing options...
Samurai Legend Posted January 21, 2020 Author Share Posted January 21, 2020 DANG DANG DANG DANG! CHARLIE IN THE BUILDING PERFECT SHODUKON. Thanks guys it is working now 2 Quote Link to comment Share on other sites More sharing options...
Dave Posted January 21, 2020 Share Posted January 21, 2020 11 minutes ago, Magictallguy said: I forgot define accepted a 3rd arg! Never saw the point in it though. Haha I did my research prior, as I thought you answer was correct too. I never even knew define had a 3rd argument. I just assume everything is case sensitive as I work between Mac and Linux. 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.