[php-src] master: Zend: remove zend_get_compiled_variable_value() (#23013)

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-04T13:05:42+01:00

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

Zend: remove zend_get_compiled_variable_value() (#23013)

As it is unused, and there is no usage on SourceGraph either. [1]

[1] https://sourcegraph.com/search?q=context:global+-f:zend_execute.c+-f:zend_execute.h+zend_get_compiled_variable_value&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 bc93aa8892ac..3af19df46454 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -234,11 +234,6 @@ ZEND_API void* zend_vm_stack_extend(size_t size)
 	return ptr;
 }
 
-ZEND_API zval* zend_get_compiled_variable_value(const zend_execute_data *execute_data, uint32_t var)
-{
-	return EX_VAR(var);
-}
-
 ZEND_API bool zend_gcc_global_regs(void)
 {
   #if defined(HAVE_GCC_GLOBAL_REGS)
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index eb73b3f3de9e..a895afd3dbcd 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -488,8 +488,6 @@ ZEND_API void ZEND_FASTCALL zend_init_func_run_time_cache(zend_op_array *op_arra
 
 ZEND_API void zend_fetch_dimension_const(zval *result, const zval *container, zval *dim, int type);
 
-ZEND_API zval* zend_get_compiled_variable_value(const zend_execute_data *execute_data_ptr, uint32_t var);
-
 ZEND_API bool zend_gcc_global_regs(void);
 
 #define ZEND_USER_OPCODE_CONTINUE   0 /* execute next opcode */
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.