You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* PHP-8.4:
Update NEWS for recent bug fixes
ext/phar: Fix memory leak in phar_verify_signature() when md_ctx is invalid
phar: propagate phar_stream_flush return value from phar_stream_close
phar: call phar_entry_delref before goto finish in phar_add_file error paths
phar: free is_temp_dir entry before rejecting .phar/* paths in offsetGet
phar: fix NULL dereference in Phar::webPhar() when SCRIPT_NAME is absent
phar: restore is_link handler in phar_intercept_functions_shutdown
if (!(entry=phar_get_entry_info_dir(phar_obj->archive, ZSTR_VAL(file_name), ZSTR_LEN(file_name), 1, &error, 0))) {
3591
3594
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Entry %s does not exist%s%s", ZSTR_VAL(file_name), error?", ":"", error?error:"");
3592
3595
} else {
3596
+
if (entry->is_temp_dir) {
3597
+
zend_string_efree(entry->filename);
3598
+
efree(entry);
3599
+
}
3600
+
3593
3601
if (zend_string_equals_literal(file_name, ".phar/stub.php")) {
3594
3602
zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Cannot get stub \".phar/stub.php\" directly in phar \"%s\", use getStub", phar_obj->archive->fname);
0 commit comments