[php-src] master: streams: voidify forget_persistent_resource_id_numbers

From: Date: Sun, 22 Nov 2026 04:11:44 +0000
Subject: [php-src] master: streams: voidify forget_persistent_resource_id_numbers
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-144015@lists.php.net to get a copy of this message
Author: Gina Peter Banyard (Girgias) Date: 2026-11-22T04:11:25Z Commit: https://github.com/php/php-src/commit/0795c3bb677917f255af6b8e81f18beb65adf6f9 Raw diff: https://github.com/php/php-src/commit/0795c3bb677917f255af6b8e81f18beb65adf6f9.diff streams: voidify forget_persistent_resource_id_numbers It always returns 0 and the return value of the function wasn't used. Changed paths: M main/streams/streams.c Diff: diff --git a/main/streams/streams.c b/main/streams/streams.c index a83e5d6042b2..579e336c0f31 100644 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -65,13 +65,13 @@ PHPAPI HashTable *php_stream_get_url_stream_wrappers_hash_global(void) return &url_stream_wrappers_hash; } -static int forget_persistent_resource_id_numbers(zval *el) +static void forget_persistent_resource_id_numbers(zval *el) { php_stream *stream; zend_resource *rsrc = Z_RES_P(el); if (rsrc->type != le_pstream) { - return 0; + return; } stream = (php_stream*)rsrc->ptr; @@ -83,8 +83,6 @@ fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream); /* Request resources have been destroyed; clear their stale pointers. */ stream->res = NULL; stream->ctx = NULL; - - return 0; } ZEND_MODULE_POST_ZEND_DEACTIVATE_D(streams)

« previous php.cvs (#144015) next »