From 78ef1b6b7b5fe8f8493ca066d4063cadf48687e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 7 Jun 2024 20:19:07 +0200 Subject: [PATCH] Avoid logging success on failure --- src/sp_wrapper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sp_wrapper.c b/src/sp_wrapper.c index 174c9673..3d29157c 100644 --- a/src/sp_wrapper.c +++ b/src/sp_wrapper.c @@ -138,6 +138,7 @@ static void sp_reregister_php_wrapper(void) { if (php_register_url_stream_wrapper("php", &sp_php_stream_php_wrapper) != SUCCESS) { sp_log_warn(LOG_FEATURE, "Failed to register custom stream wrapper \"php\""); + return; } sp_log_debug(LOG_FEATURE, "Stream \"php\" successfully re-registered");