Drupal Core Update: Deprecated assert_options() Function in PHP 8.3

php coding computer css data digital function concept
Freepik

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.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please let us know in the comments below and we will try to address the issue as best we can.

Advertisement Here

Call for Support