[php-src] master: Zend: mark zend_unfinished_calls_gc() as static (#23012)

Gina Peter Banyard via GitHub <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: Gina Peter Banyard (Girgias)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2026-08-10T13:13:08+01:00

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

Zend: mark zend_unfinished_calls_gc() as static (#23012)

It is only used once internally by zend_execute.c, as shown by a SourceGraph search. [1]

[1] https://sourcegraph.com/search?q=context:global+-f:zend_execute.c+-f:zend_execute.h+zend_unfinished_calls_gc&patternType=keyword&sm=0

Changed paths:
  M  Zend/zend_execute.c
  M  Zend/zend_execute.h


Diff:

diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index ab371cbc4e22..6f3572840d4c 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -4649,7 +4649,7 @@ static zend_always_inline zend_generator *zend_get_running_generator(EXECUTE_DAT
 }
 /* }}} */
 
-ZEND_API void zend_unfinished_calls_gc(zend_execute_data *execute_data, zend_execute_data *call, uint32_t op_num, zend_get_gc_buffer *buf) /* {{{ */
+static void zend_unfinished_calls_gc(zend_execute_data *execute_data, zend_execute_data *call, uint32_t op_num, zend_get_gc_buffer *buf) /* {{{ */
 {
 	zend_op *opline = EX(func)->op_array.opcodes + op_num;
 	int level;
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index a895afd3dbcd..017c8d208a14 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -505,7 +505,6 @@ ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode
 
 ZEND_API void zend_clean_and_cache_symbol_table(zend_array *symbol_table);
 ZEND_API void ZEND_FASTCALL zend_free_compiled_variables(zend_execute_data *execute_data);
-ZEND_API void zend_unfinished_calls_gc(zend_execute_data *execute_data, zend_execute_data *call, uint32_t op_num, zend_get_gc_buffer *buf);
 ZEND_API void zend_cleanup_unfinished_execution(zend_execute_data *execute_data, uint32_t op_num, uint32_t catch_op_num);
 ZEND_API ZEND_ATTRIBUTE_DEPRECATED HashTable *zend_unfinished_execution_gc(zend_execute_data *execute_data, zend_execute_data *call, zend_get_gc_buffer *gc_buffer);
 ZEND_API HashTable *zend_unfinished_execution_gc_ex(zend_execute_data *execute_data, zend_execute_data *call, zend_get_gc_buffer *gc_buffer, bool suspended_by_yield);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.