diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS index 8f43e83933f..c491f83d5c9 100644 --- a/UPGRADING.INTERNALS +++ b/UPGRADING.INTERNALS @@ -258,6 +258,8 @@ PHP 8.4 INTERNALS UPGRADE NOTES equivalent to reading PS(session_status) but works with shared objects too. - Added the php_get_session_var_str() API to set a session variable without needing to create a zend_string. + - The ext/session/php_session.h doesn't transitively include the + ext/hash/php_hash.h header anymore. ======================== 4. OpCode changes diff --git a/ext/session/config.m4 b/ext/session/config.m4 index f356102ac46..71908232da0 100644 --- a/ext/session/config.m4 +++ b/ext/session/config.m4 @@ -15,7 +15,6 @@ if test "$PHP_SESSION" != "no"; then PHP_PWRITE_TEST PHP_PREAD_TEST PHP_NEW_EXTENSION(session, mod_user_class.c session.c mod_files.c mod_mm.c mod_user.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) - PHP_ADD_EXTENSION_DEP(session, hash, true) PHP_ADD_EXTENSION_DEP(session, spl) PHP_SUBST(SESSION_SHARED_LIBADD) PHP_INSTALL_HEADERS([ext/session], [php_session.h mod_files.h mod_user.h]) diff --git a/ext/session/php_session.h b/ext/session/php_session.h index 3b728090898..65bf7de2044 100644 --- a/ext/session/php_session.h +++ b/ext/session/php_session.h @@ -18,7 +18,6 @@ #define PHP_SESSION_H #include "ext/standard/php_var.h" -#include "ext/hash/php_hash.h" #include "ext/random/php_random.h" #define PHP_SESSION_API 20161017 diff --git a/ext/session/session.c b/ext/session/session.c index 4a369898a8e..bce05401559 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -2998,7 +2998,6 @@ static PHP_MINFO_FUNCTION(session) /* {{{ */ /* }}} */ static const zend_module_dep session_deps[] = { /* {{{ */ - ZEND_MOD_OPTIONAL("hash") ZEND_MOD_REQUIRED("spl") ZEND_MOD_END };