Skip to content

Commit 781a417

Browse files
committed
Missing declarations & sprintf -> slprintf (just in case)
1 parent c68a901 commit 781a417

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

ext/libxml/php_libxml2.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,3 +1547,5 @@ xmlXPtrWrapLocationSet
15471547
xmlBufContent
15481548
xmlBufUse
15491549
xmlBufferDetach
1550+
xmlOutputBufferGetContent
1551+
xmlOutputBufferGetSize

ext/soap/config.w32

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ if (PHP_SOAP != "no") {
1313

1414
if (!PHP_SOAP_SHARED) {
1515
ADD_FLAG('CFLAGS_SOAP', "/D LIBXML_STATIC ");
16-
} else {
17-
if (!CHECK_LIB('libxml2.lib', 'soap')) {
18-
WARNING("soap support can't be enabled, libxml is not found");
19-
}
2016
}
2117
} else {
2218
WARNING("soap not enabled, libxml not found");

ext/soap/php_wss.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ void add_wss_to_function_call(zval *this_ptr, int soap_version, xmlNodePtr envel
120120
{
121121
char random_s[10];
122122
if (Z_TYPE_P(Z_CLIENT_WSS_RANDOM_ID_P(this_ptr)) == IS_TRUE) {
123-
sprintf(random_s, "%d", (int)php_mt_rand_common(100000000,999999999));
123+
slprintf(random_s, sizeof(random_s), "%d", (int)php_mt_rand_common(100000000,999999999));
124124
} else {
125-
sprintf(random_s, "%d", 1);
125+
slprintf(random_s, sizeof(random_s), "%d", 1);
126126
}
127127

128128
zend_string *body_id = zend_string_concat2(

0 commit comments

Comments
 (0)