diff --git a/drafts/function-autoloading.md b/drafts/function-autoloading.md index 30568b9..f895ba5 100644 --- a/drafts/function-autoloading.md +++ b/drafts/function-autoloading.md @@ -95,6 +95,11 @@ There will not be a default function autoloader. `spl_autoload_unregister` will be updated to accept the new constants as the second parameter to unregister an autoloader from either mode. +### spl_autoload_functions + +`spl_autoload_functions` will be updated to accept one of the new constants as the first parameter. Passing both (i.e., +`SPL_AUTOLOAD_CLASS | SPL_AUTOLOAD_FUNCTION`) will result in an error. + ### spl_autoload_call The `spl_autoload_call` function will be modified to accept a second parameter of one, diff --git a/published/function-autoloading.ptxt b/published/function-autoloading.ptxt index 0867cec..311d4b1 100644 --- a/published/function-autoloading.ptxt +++ b/published/function-autoloading.ptxt @@ -78,6 +78,10 @@ There will not be a default function autoloader. ''%%spl_autoload_unregister%%'' will be updated to accept the new constants as the second parameter to unregister an autoloader from either mode. +==== spl_autoload_functions ==== + +''%%spl_autoload_functions%%'' will be updated to accept one of the new constants as the first parameter. Passing both (i.e., ''%%SPL_AUTOLOAD_CLASS | SPL_AUTOLOAD_FUNCTION%%'') will result in an error. + ==== spl_autoload_call ==== The ''%%spl_autoload_call%%'' function will be modified to accept a second parameter of one, (but not both) of the new constants, with the default value set to SPL_AUTOLOAD_CLASS. The name of the first parameter will be changed to ''%%$name%%'' to reflect that it can be a class or function name.