I know that default is a reserved keyword in PHP. I came up to this weird situation where I wanted to name my class Default, but it seems whenever I try to create it in any place in code my whole page turns blank and PHP is not showing any error. It's just really confusing and I spent over 20 minutes searching for the problem in my code. Because i'm annoyed by that, I want to know what's wrong with this.
(I've tried even with different namespaces, but still the same effect, for example:)
new \SomeNamespace\Default();
Can someone explain for me why this is happening and there isn't any error showing up? Is this just a PHP flaw that we have to live with?
display_errorsprint_r(error_get_last());to see if it shows any error.