- get_defined_functions: documentation ( source)
- defined: documentation ( source)
- define: documentation ( source)
<?php
foreach (get_defined_functions()['internal'] as $internalFunctionName) {
if (defined($internalFunctionName)) {
throw new Exception('Internal function constant name collision');
} else {
define($internalFunctionName, $internalFunctionName);
}
}