Samurai Legend Posted January 21, 2020 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
Magictallguy Posted January 21, 2020 Posted January 21, 2020 Capitalise it. djlk34jlk -> DJLK34JLK 1 Quote
Samurai Legend Posted January 21, 2020 Author Posted January 21, 2020 Still throws the same error Quote
Dave Posted January 21, 2020 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
Magictallguy Posted January 21, 2020 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
Samurai Legend Posted January 21, 2020 Author Posted January 21, 2020 DANG DANG DANG DANG! CHARLIE IN THE BUILDING PERFECT SHODUKON. Thanks guys it is working now 2 Quote
Dave Posted January 21, 2020 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
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.