From 8b932032b116b7737149707837fa66e6ee6b0bb4 Mon Sep 17 00:00:00 2001 From: Robert Landers Date: Sun, 18 Aug 2024 22:09:08 +0200 Subject: [PATCH] add spl_autoload_unregister --- drafts/function-autoloading.md | 6 ++++++ published/function-autoloading.ptxt | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/drafts/function-autoloading.md b/drafts/function-autoloading.md index 7c6ff87..30568b9 100644 --- a/drafts/function-autoloading.md +++ b/drafts/function-autoloading.md @@ -90,6 +90,11 @@ an `Error` is thrown: 'Default autoloader can only load classes.' There will not be a default function autoloader. +### spl_autoload_unregister + +`spl_autoload_unregister` will be updated to accept the new constants as the second parameter to unregister an +autoloader from either mode. + ### spl_autoload_call The `spl_autoload_call` function will be modified to accept a second parameter of one, @@ -143,6 +148,7 @@ None at this time. Potentially, constants and stream wrappers can be added in a similar fashion. ## Proposed Voting Choices + * Yes diff --git a/published/function-autoloading.ptxt b/published/function-autoloading.ptxt index 922e8eb..0867cec 100644 --- a/published/function-autoloading.ptxt +++ b/published/function-autoloading.ptxt @@ -74,6 +74,10 @@ For codebases that want to take advantage of function autoloading, it may be des There will not be a default function autoloader. +==== spl_autoload_unregister ==== + +''%%spl_autoload_unregister%%'' will be updated to accept the new constants as the second parameter to unregister an autoloader from either mode. + ==== 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.