File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -354,11 +354,9 @@ int php_openssl_get_ssl_stream_data_index(void)
354
354
static PHP_INI_MH (OnUpdateLibCtx )
355
355
{
356
356
#if PHP_OPENSSL_API_VERSION >= 0x30000
357
- const char * name = ZSTR_VAL (new_value );
358
-
359
- if (!strcmp (name , "default" )) {
357
+ if (zend_string_equals (new_value , "default" )) {
360
358
OPENSSL_G (ctx ).libctx = OPENSSL_G (ctx ).default_libctx ;
361
- } else if (! strcmp ( name , "custom" )) {
359
+ } else if (zend_string_equals ( new_value , "custom" )) {
362
360
OPENSSL_G (ctx ).libctx = OPENSSL_G (ctx ).custom_libctx ;
363
361
} else {
364
362
int err_type ;
@@ -370,7 +368,7 @@ static PHP_INI_MH(OnUpdateLibCtx)
370
368
371
369
/* Do not output error when restoring ini options. */
372
370
if (stage != ZEND_INI_STAGE_DEACTIVATE ) {
373
- php_error_docref (NULL , err_type , "OpenSSL libctx \"%s\" cannot be found" , name );
371
+ php_error_docref (NULL , err_type , "OpenSSL libctx \"%s\" cannot be found" , ZSTR_VAL ( new_value ) );
374
372
}
375
373
return FAILURE ;
376
374
}
You can’t perform that action at this time.
0 commit comments