Post

Snuffleupagus 0.14.0 - Blumenbach

Snuffleupagus 0.14.0 release includes a critical fix for PHP 8.5’s opcache optimizer, which inline-optimizes trivial constant-return functions, bypassing Snuffleupagus’s zend_execute_ex hooks that enforce return-value security rules. The fix uses the op_array_handler callback during pre-optimization compilation to set ZEND_ACC_HAS_TYPE_HINTS on ruled functions, preventing inlining without runtime cost. The release also addresses a 2x WordPress slowdown caused by chained disable_function rules by moving them to per-function hashtables keyed by innermost function, plus multiple security fixes (type confusion, null-pointer dereference in cookie encryption, unserialization truncation), and improved PHP 8.5 compatibility.

Read original article

This post is licensed under CC BY 4.0 by the author.