#
cc046426 |
| 12-Sep-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Avoid copying the local name in SOAP's parse_namespace() (#15862) The local name is either the entire input or is the last part, so we never need to make a copy.
|
#
72a2cbcc |
| 09-Sep-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix bug #73182: PHP SOAPClient does not support stream context HTTP headers in array form This code is modelled after how `http_fopen_wrapper.c` does things, which apparently is just loo
Fix bug #73182: PHP SOAPClient does not support stream context HTTP headers in array form This code is modelled after how `http_fopen_wrapper.c` does things, which apparently is just looping over the array and handling each string the same way as if we passed a header string directly. Also fixes a potential crash in `php_sdl.c` but without adding support for header arrays there (yet) because the code is untested. Closes GH-15817.
show more ...
|
#
b7b492b1 |
| 09-Sep-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Deduplicate URI building code in soap schema code (#15799)
|
#
5b1b3ae6 |
| 19-Jun-2024 |
Gina Peter Banyard |
ext/soap: Initialize a HashTable of size j The i seems to be a mistake as everything else uses j
|
#
ee75f344 |
| 19-Jun-2024 |
Gina Peter Banyard |
ext/soap: Add const qualifiers for serialize functions As serializing something should not affect the value of it
|
#
ca2b131c |
| 19-Jun-2024 |
Gina Peter Banyard |
ext/soap: mark string param of sdl_serialize_key() as const Add const qualifiers to the variables at the call size Rename variables when they were shadowing a variable from the outer sco
ext/soap: mark string param of sdl_serialize_key() as const Add const qualifiers to the variables at the call size Rename variables when they were shadowing a variable from the outer scope
show more ...
|
#
325f8f0c |
| 19-Jun-2024 |
Gina Peter Banyard |
ext/soap: Remove cast from macro Move it to the one call site that requires it
|
#
0e91b4f5 |
| 19-Jun-2024 |
Gina Peter Banyard |
ext/soap: convert int type to size_t where appropriate
|
#
902c8cea |
| 19-Jun-2024 |
Gina Peter Banyard |
ext/soap: Rename MD5 context variable to not shadow the stream context variable
|
#
a6a2c661 |
| 16-Jun-2024 |
Gina Peter Banyard |
ext/soap: Refactor SDL delete functions Use a common implementation for persistent and non-persistent functions
|
#
fd2d8696 |
| 08-Jun-2024 |
Gina Peter Banyard |
Clean-up some more headers (#14416) Remove unused headers (such as php_ini.h for extensions that don't define INI settings) Use more specific headers when possible
|
#
37f683a7 |
| 31-May-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Remove unused internal functions in soap
|
#
e8c6c6f1 |
| 31-May-2024 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix signedness issues in soap.c
|
#
60336de2 |
| 06-May-2024 |
Máté Kocsis |
Migrate SOAP SDL resource to object Related to https://wiki.php.net/rfc/resource_to_object_conversion and https://github.com/php/php-tasks/issues/6 Closes GH-14121
|
#
0a39890c |
| 01-Dec-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix libxml2 2.12 build due to API breaks See https://github.com/php/php-src/actions/runs/7062192818/job/19225478601
|
#
4eee81b5 |
| 30-Nov-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix GH-12838: [SOAP] Temporary WSDL cache files not being deleted If there are two users that can execute the script that caches a WSDL, but the script is owned by a single user, then th
Fix GH-12838: [SOAP] Temporary WSDL cache files not being deleted If there are two users that can execute the script that caches a WSDL, but the script is owned by a single user, then the caching code will name the cached file with the file owner username and a hash of the uri. When one of the two tries to rename the file created by the other process, this does not work because it has no permission to do so. This then leaves temporary files floating in the temp directory. To fix the immediate problem, unlink the file after rename has failed. On the long term, this has to be fixed by taking the username of the process instead of the username of the file owner. Closes GH-12841.
show more ...
|
#
27797a26 |
| 18-Oct-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix bug #75306: Memleak in SoapClient Setting the stream context via php_stream_context_to_zval() will increase the reference count. So if the new context is created, then it will en
Fix bug #75306: Memleak in SoapClient Setting the stream context via php_stream_context_to_zval() will increase the reference count. So if the new context is created, then it will end up with a reference count of 2 while it should be 1. Credits to cmb for the analysis. I arrived at the same patch as he did. Closes GH-12523.
show more ...
|
#
9f7f3b20 |
| 24-Oct-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix incorrect dtor for persistent sdl->encoders Closes GH-12515.
|
#
04938426 |
| 24-Oct-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix soap crash with ZEND_RC_DEBUG (#12514)
|
#
e58af7c1 |
| 12-Oct-2023 |
Viktor Vassilyev |
ext/soap: Add support for clark notation for namespaces in class map Closes GH-12411.
|
#
abf562c4 |
| 19-Oct-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix incorrect uri check in SOAP caching If i == 0 then the check will compare 0 bytes. We are supposed to check if the uri is identical. Closes GH-12479.
|
#
43e63168 |
| 18-Oct-2023 |
Niels Dossche <7771979+nielsdos@users.noreply.github.com> |
Fix bug #66150: SOAP WSDL cache race condition causes Segmentation Fault When we have two processes both trying to cache a WSDL, they might start writing the data to the same temporary f
Fix bug #66150: SOAP WSDL cache race condition causes Segmentation Fault When we have two processes both trying to cache a WSDL, they might start writing the data to the same temporary file, causing file corruption due to the race condition. Fix this by creating a temporary file first, and then moving it to the final location. If moving fails then we know another process finished caching first. This also fixes #67617 as a consequence of its implementation. Closes GH-12469.
show more ...
|
Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1, php-8.0.22RC1 |
|
#
4df3dd76 |
| 08-Jul-2022 |
Arnaud Le Blanc |
Reduce memory allocated by var_export, json_encode, serialize, and other (#8902) smart_str uses an over-allocated string to optimize for append operations. Functions that use smart_str tend
Reduce memory allocated by var_export, json_encode, serialize, and other (#8902) smart_str uses an over-allocated string to optimize for append operations. Functions that use smart_str tend to return the over-allocated string directly. This results in unnecessary memory usage, especially for small strings. The overhead can be up to 231 bytes for strings smaller than that, and 4095 for other strings. This can be avoided for strings smaller than `4096 - zend_string header size - 1` by reallocating the string. This change introduces `smart_str_trim_to_size()`, and calls it in `smart_str_extract()`. Functions that use `smart_str` are updated to use `smart_str_extract()`. Fixes GH-8896
show more ...
|
Revision tags: php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1, php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30, php-8.1.7RC1, php-8.0.20RC1 |
|
#
2a13304b |
| 12-May-2022 |
Christoph M. Becker |
Fix GH-8538: SoapClient may strip parts of nmtokens When stripping the namespace prefix, we can assume that this does not contain any colons, while the rest of the name may contain colon
Fix GH-8538: SoapClient may strip parts of nmtokens When stripping the namespace prefix, we can assume that this does not contain any colons, while the rest of the name may contain colons. Hence we must not use `strrchr()` but rather `strchr()` instead. Closes GH-8543.
show more ...
|
Revision tags: php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28, php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15, php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6 |
|
#
90b7bde6 |
| 03-Nov-2021 |
Dmitry Stogov |
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[
Use more compact representation for packed arrays. - for packed arrays we store just an array of zvals without keys. - the elements of packed array are accessible throuf as ht->arPacked[i] instead of ht->arData[i] - in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes (ZEND_HASH_MAP_FOREACH_*) - introduced an additional family of macros to access elements of array (packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX, ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT - zend_hash_minmax() prototype was changed to compare only values Because of smaller data set, this patch may show performance improvement on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser) TODO: - sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET). - zend_hash_sort_ex() may require converting packed arrays to hash.
show more ...
|