[php-src] PR #15259: zend_enum: Rename try parameter to avoid conflict with C++

From: Date: Tue, 06 Aug 2024 16:54:17 +0000
Subject: [php-src] PR #15259: zend_enum: Rename try parameter to avoid conflict with C++
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-27707@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15259 Author: cmb69 try is a keyword in C++, and as such C++ code including <zend_enum.h> fails to compile unless a workaround is in place. To resolve this, we simply rename the parameter. We choose try_from to make it clear that this parameter is true when the function is called from BackedEnum::tryFrom(). For consistency, we also rename the try parameter of zend_enum_from_base(), although that function is not exported. --- Note that this is a follow-up on #15235, which has been closed for unknown reasons, but has been a valid request.

« previous php.git-pulls (#27707) next »