[php-src] master: Merge branch 'PHP-8.5' into PHP-8.6

From: Date: Thu, 15 Oct 2026 02:44:38 +0000
Subject: [php-src] master: Merge branch 'PHP-8.5' into PHP-8.6
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142301@lists.php.net to get a copy of this message
Author: David Carlier (devnexen) Date: 2026-10-15T03:44:05+01:00 Commit: https://github.com/php/php-src/commit/7706c5716c5f7ffde8b7ca0f7f7a78e6eb246915 Raw diff: https://github.com/php/php-src/commit/7706c5716c5f7ffde8b7ca0f7f7a78e6eb246915.diff Merge branch 'PHP-8.5' into PHP-8.6 * PHP-8.5: Zend: zend_call_stack_get_netbsd_pthread() pthread attribute leak. Changed paths: M Zend/zend_call_stack.c Diff: diff --git a/Zend/zend_call_stack.c b/Zend/zend_call_stack.c index 40f0c7e549c2..e6e908516529 100644 --- a/Zend/zend_call_stack.c +++ b/Zend/zend_call_stack.c @@ -590,11 +590,13 @@ static bool zend_call_stack_get_netbsd_pthread(zend_call_stack *stack) error = pthread_attr_getstack(&attr, &addr, &max_size); if (error) { + pthread_attr_destroy(&attr); return false; } error = pthread_attr_getguardsize(&attr, &guard_size); if (error) { + pthread_attr_destroy(&attr); return false; } @@ -604,6 +606,7 @@ static bool zend_call_stack_get_netbsd_pthread(zend_call_stack *stack) stack->base = (char *)addr + max_size; stack->max_size = max_size; + pthread_attr_destroy(&attr); return true; } # else

« previous php.cvs (#142301) next »