spyworld Posted May 22, 2017 Share Posted May 22, 2017 After upgrade to PHP 7.1, I receive an error message: Constant expression contains invalid operations pack("c*", 56, 94, 129, 23, 143, 52, 187, 82); Quote Link to comment Share on other sites More sharing options...
requinix Posted May 22, 2017 Share Posted May 22, 2017 You cannot define a constant using const with an expression (such as a function call). Use define for a global constant or find another way to do what you want for a class constant. 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.