Skip to content

Commit

Permalink
spl_autoload_functions
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Aug 18, 2024
1 parent 8b93203 commit 2165b7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drafts/function-autoloading.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions published/function-autoloading.ptxt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2165b7c

Please sign in to comment.