@@ -382,7 +382,7 @@ int php_openssl_parse_config(struct php_x509_request * req, zval * optional_args
382382 && Z_TYPE_P (item ) == IS_STRING ) {
383383 req -> curve_name = OBJ_sn2nid (Z_STRVAL_P (item ));
384384 if (req -> curve_name == NID_undef ) {
385- php_error_docref (NULL , E_WARNING , "Unknown elliptic curve (short) name %s " , Z_STRVAL_P (item ));
385+ php_error_docref (NULL , E_WARNING , "Unknown elliptic curve (short) name %pS " , Z_STR_P (item ));
386386 return FAILURE ;
387387 }
388388 }
@@ -936,10 +936,10 @@ zend_result php_openssl_csr_add_subj_entry(zval *item, X509_NAME *subj, int nid)
936936 {
937937 php_openssl_store_errors ();
938938 php_error_docref (NULL , E_WARNING ,
939- "dn: add_entry_by_NID %d -> %s (failed; check error"
939+ "dn: add_entry_by_NID %d -> %pS (failed; check error"
940940 " queue and value of string_mask OpenSSL option "
941941 "if illegal characters are reported)" ,
942- nid , ZSTR_VAL ( str_item ) );
942+ nid , str_item );
943943 zend_string_release (str_item );
944944 return FAILURE ;
945945 }
@@ -1004,7 +1004,7 @@ zend_result php_openssl_csr_make(struct php_x509_request * req, X509_REQ * csr,
10041004 return FAILURE ;
10051005 }
10061006 } else {
1007- php_error_docref (NULL , E_WARNING , "dn: %s is not a recognized name" , ZSTR_VAL ( strindex ) );
1007+ php_error_docref (NULL , E_WARNING , "dn: %pS is not a recognized name" , strindex );
10081008 }
10091009 }
10101010 } ZEND_HASH_FOREACH_END ();
@@ -1085,13 +1085,13 @@ zend_result php_openssl_csr_make(struct php_x509_request * req, X509_REQ * csr,
10851085 }
10861086 if (!X509_REQ_add1_attr_by_NID (csr , nid , MBSTRING_UTF8 , (unsigned char * )ZSTR_VAL (str_item ), (int )ZSTR_LEN (str_item ))) {
10871087 php_openssl_store_errors ();
1088- php_error_docref (NULL , E_WARNING , "attributes: add_attr_by_NID %d -> %s (failed)" , nid , ZSTR_VAL ( str_item ) );
1088+ php_error_docref (NULL , E_WARNING , "attributes: add_attr_by_NID %d -> %pS (failed)" , nid , str_item );
10891089 zend_string_release (str_item );
10901090 return FAILURE ;
10911091 }
10921092 zend_string_release (str_item );
10931093 } else {
1094- php_error_docref (NULL , E_WARNING , "attributes: %s is not a recognized attribute name" , ZSTR_VAL ( strindex ) );
1094+ php_error_docref (NULL , E_WARNING , "attributes: %pS is not a recognized attribute name" , strindex );
10951095 }
10961096 } ZEND_HASH_FOREACH_END ();
10971097 for (i = 0 ; i < sk_CONF_VALUE_num (attr_sk ); i ++ ) {
0 commit comments