Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Use of undefined constant CHARSET_NATIVE" warning (php 7.2 issue) #583
After a fresh installation of serendipity 2.2.1-alpha1 with PHP 7.2 entering the start page gives me a warning:
Subsequently there's also a stack trace due to production mode.
I am quite confused why this happens. The code is this:
This seems alright - CHARSET_NATIVE is only accessed if it's defined. I'm also unable to reproduce this in a minimized example.
Hm, https://github.com/s9y/Serendipity/blob/master/serendipity_config.inc.php#L401 just calls the constant:
That's probably the issue?
The code you cite is from https://github.com/s9y/Serendipity/blob/master/serendipity_config.inc.php#L199, further above.
so there's something else strange, the installation seems to fail for other reasons and this is just a followup error.