Closed
Description
From manual page: https://php.net/manual/en/functions.first_class_callable_syntax.php
Is it possible to have this feature disabled? The docs never mention it, but I encountered a server running PHP 8.1.2 (according to echo phpinfo()
)that does not recognize functionname(...)
syntax and throws "ArgumentCountError".
Is there a setting I can check in phpinfo()
to know for sure this is intended? E.g. the website hosting provider disabled the feature or is using a build of PHP without it?
Most importantly for the docs, any info about how to figure this out before doing a major refactor and finding out the thing would not run in production would be appreciated.