[php-src] master: Remove unused php_std_auto_global_callback() (#13656)
| From: | Peter Kokot via GitHub | Date: | Sun, 10 Mar 2024 17:19:40 +0000 |
| Subject: | [php-src] master: Remove unused php_std_auto_global_callback() (#13656) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127694@lists.php.net to get a copy of this message | ||
Author: Peter Kokot (petk)
Committer: GitHub (web-flow)
Pusher: petk
Date: 2024-03-10T18:05:51+01:00
Commit: https://github.com/php/php-src/commit/d2635b10b438b55dd26ff05e89982018f7596772
Raw diff: https://github.com/php/php-src/commit/d2635b10b438b55dd26ff05e89982018f7596772.diff
Remove unused php_std_auto_global_callback() (#13656)
Introduced in 4e55747a2b0fd481018bfd390e2aa50569f73c41 but not used in
current code. There was previous removal attempt via
afa4e41c2fdd676c428614ff67f6517e995bcbdf but looks like it didn't make
it into the master branch at that point.
Changed paths:
M main/php_variables.c
Diff:
diff --git a/main/php_variables.c b/main/php_variables.c
index db8094b0952e..d60bda10bf2d 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -641,12 +641,6 @@ void _php_load_environment_variables(zval *array_ptr)
php_import_environment_variables(array_ptr);
}
-bool php_std_auto_global_callback(char *name, uint32_t name_len)
-{
- zend_printf("%s\n", name);
- return 0; /* don't rearm */
-}
-
/* {{{ php_build_argv */
PHPAPI void php_build_argv(const char *s, zval *track_vars_array)
{