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)
354354static PHP_INI_MH (OnUpdateLibCtx )
355355{
356356#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" )) {
360358 OPENSSL_G (ctx ).libctx = OPENSSL_G (ctx ).default_libctx ;
361- } else if (! strcmp ( name , "custom" )) {
359+ } else if (zend_string_equals ( new_value , "custom" )) {
362360 OPENSSL_G (ctx ).libctx = OPENSSL_G (ctx ).custom_libctx ;
363361 } else {
364362 int err_type ;
@@ -370,7 +368,7 @@ static PHP_INI_MH(OnUpdateLibCtx)
370368
371369 /* Do not output error when restoring ini options. */
372370 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 ) );
374372 }
375373 return FAILURE ;
376374 }
You can’t perform that action at this time.
0 commit comments