rfc:static_constructor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:static_constructor [2024/06/19 11:15] – Changing implementation link erickcomp | rfc:static_constructor [2025/04/03 13:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Date: 2024-06-08 | * Date: 2024-06-08 | ||
* Author: Erick de Azevedo Lima < | * Author: Erick de Azevedo Lima < | ||
- | * Status: | + | * Status: |
* Target Version: PHP 8.4 | * Target Version: PHP 8.4 | ||
* Implementation: | * Implementation: | ||
Line 38: | Line 38: | ||
// could get it from config, database or whatever | // could get it from config, database or whatever | ||
self:: | self:: | ||
- | | ||
} | } | ||
| | ||
Line 79: | Line 78: | ||
// could get it from config, database or whatever | // could get it from config, database or whatever | ||
self:: | self:: | ||
- | | ||
} | } | ||
| | ||
Line 382: | Line 380: | ||
Similar to the C# implementation, | Similar to the C# implementation, | ||
+ | |||
+ | ===== Exception handling ===== | ||
+ | The current behavior allows exceptions to be thrown from within the static constructor, | ||
===== Implementation notes ===== | ===== Implementation notes ===== | ||
Line 494: | Line 495: | ||
As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. | As per the voting RFC a yes/no vote with a 2/3 majority is needed for this proposal to be accepted. | ||
+ | ===== Implementation ===== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Note: This implementation still needs tests | ||
===== Future scope ===== | ===== Future scope ===== |
rfc/static_constructor.1718795714.txt.gz · Last modified: 2025/04/03 13:08 (external edit)