Drupal Core Update: Deprecated assert_options() Function in PHP 8.3
Andrey Postnikov, on October 31, 2023, issued a critical update affecting PHP 8.3 in Drupal core's 10.2.x branch. This change record highlights the deprecation of the assert_options() function, a consequence of PHP's 8.3 RFC. The document strongly advises against employing this function in production code. Instead, PHP's assertions can be enabled by configuring zend.assertions. The recommended action is to verify and remove specific lines within settings.local.php, replacing assert_options() calls with the defaults assert.active=1 and assert.exception=1, as detailed in the PHP manual.
This modification directly impacts a wide spectrum of users, including site builders, administrators, editors, and module developers. However, Andrey's comprehensive update primarily targets crucial adjustments rather than immediate documentation or thematic changes. While it affects various aspects, no direct updates have been implemented in online documentation, theming guides, module developer documentation, or associated projects like Coder Review and Coder Upgrade. Despite these omissions, the author ensures that other essential updates have been executed, prioritizing the core adjustment to align with the PHP 8.3 deprecation mandates.
Learn more here.


