@@ -286,7 +286,7 @@ static ZEND_NAMED_FUNCTION(zend_enum_cases_func)
286
286
} ZEND_HASH_FOREACH_END ();
287
287
}
288
288
289
- ZEND_API zend_result zend_enum_get_case_by_value (zend_object * * result , zend_class_entry * ce , zend_long long_key , zend_string * string_key , bool try )
289
+ ZEND_API zend_result zend_enum_get_case_by_value (zend_object * * result , zend_class_entry * ce , zend_long long_key , zend_string * string_key , bool try_from )
290
290
{
291
291
if (ce -> type == ZEND_USER_CLASS && !(ce -> ce_flags & ZEND_ACC_CONSTANTS_UPDATED )) {
292
292
if (zend_update_class_constants (ce ) == FAILURE ) {
@@ -310,7 +310,7 @@ ZEND_API zend_result zend_enum_get_case_by_value(zend_object **result, zend_clas
310
310
311
311
if (case_name_zv == NULL ) {
312
312
not_found :
313
- if (try ) {
313
+ if (try_from ) {
314
314
* result = NULL ;
315
315
return SUCCESS ;
316
316
}
@@ -340,7 +340,7 @@ ZEND_API zend_result zend_enum_get_case_by_value(zend_object **result, zend_clas
340
340
return SUCCESS ;
341
341
}
342
342
343
- static void zend_enum_from_base (INTERNAL_FUNCTION_PARAMETERS , bool try )
343
+ static void zend_enum_from_base (INTERNAL_FUNCTION_PARAMETERS , bool try_from )
344
344
{
345
345
zend_class_entry * ce = execute_data -> func -> common .scope ;
346
346
bool release_string = false;
@@ -375,12 +375,12 @@ static void zend_enum_from_base(INTERNAL_FUNCTION_PARAMETERS, bool try)
375
375
}
376
376
377
377
zend_object * case_obj ;
378
- if (zend_enum_get_case_by_value (& case_obj , ce , long_key , string_key , try ) == FAILURE ) {
378
+ if (zend_enum_get_case_by_value (& case_obj , ce , long_key , string_key , try_from ) == FAILURE ) {
379
379
goto throw ;
380
380
}
381
381
382
382
if (case_obj == NULL ) {
383
- ZEND_ASSERT (try );
383
+ ZEND_ASSERT (try_from );
384
384
goto return_null ;
385
385
}
386
386
0 commit comments