[php-src] master: zip: add static storage specifier for private functions

Gina Peter Banyard <[email protected]> Tue, 28 Jul 2026 16:31:23 +0000
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Date: 2026-07-28T17:31:09+01:00

Commit: https://github.com/php/php-src/commit/6739acedc8209058782e74c3afc01c0184144373
Raw diff: https://github.com/php/php-src/commit/6739acedc8209058782e74c3afc01c0184144373.diff

zip: add static storage specifier for private functions

Changed paths:
  M  ext/zip/php_zip.c


Diff:

diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c
index 2e1e8dc86251..6f0b8e96c56f 100644
--- a/ext/zip/php_zip.c
+++ b/ext/zip/php_zip.c
@@ -651,7 +651,7 @@ static bool php_zipobj_close(ze_zip_object *obj, zend_string **out_str) /* {{{ *
 }
 /* }}} */
 
-int php_zip_glob(zend_string *spattern, zend_long flags, zval *return_value) /* {{{ */
+static int php_zip_glob(zend_string *spattern, zend_long flags, zval *return_value) /* {{{ */
 {
 	int cwd_skip = 0;
 #ifdef ZTS
@@ -755,7 +755,7 @@ int php_zip_glob(zend_string *spattern, zend_long flags, zval *return_value) /*
 }
 /* }}} */
 
-int php_zip_pcre(zend_string *regexp, char *path, int path_len, zval *return_value) /* {{{ */
+static int php_zip_pcre(zend_string *regexp, char *path, int path_len, zval *return_value) /* {{{ */
 {
 #ifdef ZTS
 	char cwd[MAXPATHLEN];