summaryrefslogtreecommitdiff
path: root/ext/soap/php_http.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.4'Nikita Popov2020-09-171-6/+25
|\ | | | | | | | | * PHP-7.4: ext/soap: Compare Set-Cookie header case-insensitively
| * Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-09-171-6/+25
| |\ | | | | | | | | | | | | * PHP-7.3: ext/soap: Compare Set-Cookie header case-insensitively
| | * ext/soap: Compare Set-Cookie header case-insensitivelyGabríel Arthúr Pétursson2020-09-171-6/+25
| | | | | | | | | | | | Closes GH-6143.
* | | Merge branch 'PHP-7.4'Matteo Beccati2020-08-181-2/+15
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #47021: SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
| * | Merge branch 'PHP-7.3' into PHP-7.4Matteo Beccati2020-08-181-2/+15
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #47021: SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
| | * Fix #47021: SoapClient stumbles over WSDL delivered with "Transfer-Encoding: ↵Matteo Beccati2020-08-181-2/+15
| | | | | | | | | | | | chunked"
| | * Merge branch 'PHP-7.2' into PHP-7.3Nikita Popov2019-05-211-2/+21
| | |\
| | | * Support content_type stream context option in soapVincent JARDIN2019-05-211-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows overriding the HTTP header using the HTTP context: $client = new SoapClient('http://url.wsdl&v=latest', [ 'stream_context' => stream_context_create([ 'http' => [ 'content_type' => 'foobarX', ], ]), ]); This is a backport of c55af3c65ac116bbd935bd3d695869d88056c49c to the PHP 7.2 branch.
| | | * Trim trailing whitespace in source code filesPeter Kokot2018-10-131-1/+1
| | | |
| | | * year++Xinchen Hui2018-01-021-1/+1
| | | |
| | * | Future-proof email addressesZeev Suraski2018-11-011-1/+1
| | | |
* | | | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
|/ / / | | | | | | | | | Closes GH-4732.
* | | Report errors from stream read and write operationsNikita Popov2019-07-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The php_stream_read() and php_stream_write() functions now return an ssize_t value, with negative results indicating failure. Functions like fread() and fwrite() will return false in that case. As a special case, EWOULDBLOCK and EAGAIN on non-blocking streams should not be regarded as error conditions, and be reported as successful zero-length reads/writes instead. The handling of EINTR remains unclear and is internally inconsistent (e.g. some code-paths will automatically retry on EINTR, while some won't). I'm landing this now to make sure the stream wrapper ops API changes make it into 7.4 -- however, if the user-facing changes turn out to be problematic we have the option of clamping negative returns to zero in php_stream_read() and php_stream_write() to restore the old behavior in a relatively non-intrusive manner.
* | | Use ZEND_HASH_FOREACH APIs in a few more placesNikita Popov2019-07-161-13/+5
| | |
* | | Support content_type stream context option in soapVincent JARDIN2019-05-131-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows overriding the HTTP header using the HTTP context: $client = new SoapClient('http://url.wsdl&v=latest', [ 'stream_context' => stream_context_create([ 'http' => [ 'content_type' => 'foobarX', ], ]), ]);
* | | Remove local variablesPeter Kokot2019-02-031-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* | | Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
| | |
* | | Future-proof email addresses...Zeev Suraski2018-11-011-1/+1
| | |
* | | Fix some misspellingsGabriel Caruso2018-08-121-2/+2
|/ /
* | Fix typos in code commentsPeter Kokot2018-07-251-1/+1
| |
* | Remove unused Git attributes identPeter Kokot2018-07-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | Use zend_string_release_ex() instread of zend_string_release() in places, ↵Dmitry Stogov2018-05-281-30/+30
| | | | | | | | where we sure about string persistence.
* | Trailing whitespacesGabriel Caruso2018-01-031-1/+1
| | | | | | | | Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-3/+3
| | | | | | | | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* | Refactor php_url struct to save memory dup in common casesXinchen Hui2017-08-061-44/+46
|/
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Merge branch 'pull-request/2152'Joe Watkins2016-10-201-1/+8
|\
| * soap #69137 - Invert logic to be correctKeith Smiley2016-10-131-1/+1
| |
| * soap #69137 - Fix SSL verify when using a proxyKeith Smiley2016-10-031-1/+8
| | | | | | | | | | | | | | | | | | Name verification was failing because the OpenSSL extension was picking the proxy server's address when guessing which name to compare to the SSL certificate. This scenario is already handled for stream wrappers in http_fopen_wrapper.c. This patch applies the same fix to the SOAP extension: when a proxy is used, set peer_name explicitly on the stream context.
* | Fix some insecure usages of php_randLeigh2016-07-051-2/+6
| |
* | Fixed compilation warningsDmitry Stogov2016-06-221-3/+3
| |
* | Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-1/+1
|/ | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* Eliminate usages of _PP macrosNikita Popov2016-03-031-10/+0
| | | | | | | | | | | | | These are either in debug code (fix them), commented out (drop them) or in dead compatibility macros (drop them). One usage was in php_stream_get_from_zval(), which we have not used since at least PHP 5.2 and, judging from the fact that nobody complained about it causing compile errors in PHP 7, nobody else uses it either, so drop it. There are still remaining uses in mysqli embedded and odbc birdstep. These probably need to be dropped outright.
* Fix bug #71610: Type Confusion Vulnerability - SOAP / make_http_soap_request()Stanislav Malyshev2016-02-211-0/+2
|
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
* | Fixed bug #70715 (Segmentation fault inside soap client)Xinchen Hui2015-10-151-1/+5
| |
* | Fixed bug #70709 (SOAP Client generates Segfault)Xinchen Hui2015-10-151-1/+6
| |
* | Fixed memory leak and avoid reallocationsDmitry Stogov2015-09-241-68/+79
| |
* | fix datatypeAnatol Belski2015-08-071-1/+1
| |
* | Merge branch 'PHP-5.6'Stanislav Malyshev2015-08-041-3/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: update NEWS fix test update NEWS Fix bug #70019 - limit extracted files to given directory Do not do convert_to_* on unserialize, it messes up references Fix #69793 - limit what we accept when unserializing exception Fixed bug #70169 (Use After Free Vulnerability in unserialize() with SplDoublyLinkedList) Fixed bug #70166 - Use After Free Vulnerability in unserialize() with SPLArrayObject ignore signatures for packages too Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage Fixed bug #69892 Fix bug #70014 - use RAND_bytes instead of deprecated RAND_pseudo_bytes Improved fix for Bug #69441 Fix bug #70068 (Dangling pointer in the unserialization of ArrayObject items) Fix bug #70121 (unserialize() could lead to unexpected methods execution / NULL pointer deref) Fix bug #70081: check types for SOAP variables Conflicts: Zend/zend_exceptions.c ext/date/php_date.c ext/openssl/openssl.c ext/phar/phar_internal.h ext/soap/php_http.c ext/spl/spl_array.c ext/spl/spl_dllist.c ext/spl/spl_observer.c ext/standard/tests/serialize/bug69152.phpt sapi/cli/tests/005.phpt
| * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2015-08-041-10/+13
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: update NEWS fix test update NEWS Fix bug #70019 - limit extracted files to given directory Do not do convert_to_* on unserialize, it messes up references Fix #69793 - limit what we accept when unserializing exception Fixed bug #70169 (Use After Free Vulnerability in unserialize() with SplDoublyLinkedList) Fixed bug #70166 - Use After Free Vulnerability in unserialize() with SPLArrayObject ignore signatures for packages too Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage Fixed bug #69892 Fix bug #70014 - use RAND_bytes instead of deprecated RAND_pseudo_bytes Improved fix for Bug #69441 Fix bug #70068 (Dangling pointer in the unserialization of ArrayObject items) Fix bug #70121 (unserialize() could lead to unexpected methods execution / NULL pointer deref) Fix bug #70081: check types for SOAP variables Conflicts: ext/soap/php_http.c ext/spl/spl_observer.c
| | * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2015-08-041-10/+13
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Fix bug #70019 - limit extracted files to given directory Do not do convert_to_* on unserialize, it messes up references Fix #69793 - limit what we accept when unserializing exception Fixed bug #70169 (Use After Free Vulnerability in unserialize() with SplDoublyLinkedList) Fixed bug #70166 - Use After Free Vulnerability in unserialize() with SPLArrayObject ignore signatures for packages too Fix bug #70168 - Use After Free Vulnerability in unserialize() with SplObjectStorage Fixed bug #69892 Fix bug #70014 - use RAND_bytes instead of deprecated RAND_pseudo_bytes Improved fix for Bug #69441 Fix bug #70068 (Dangling pointer in the unserialization of ArrayObject items) Fix bug #70121 (unserialize() could lead to unexpected methods execution / NULL pointer deref) Fix bug #70081: check types for SOAP variables Conflicts: .gitignore ext/date/php_date.c ext/spl/spl_array.c ext/spl/spl_observer.c
| | | * Fix bug #70081: check types for SOAP variablesStanislav Malyshev2015-07-261-10/+13
| | | |
| * | | Merge branch 'PHP-5.5' into PHP-5.6Reeze Xia2015-03-031-8/+15
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Improve fix for bug 67741 Added type checks Added type checks
* | | | Fixed bug #70079 (Segmentation fault after more than 100 SoapClient calls)Xinchen Hui2015-07-161-0/+2
| | | |
* | | | Fixed Bug #70032 (make_http_soap_request calls ↵Xinchen Hui2015-07-091-1/+1
| | | | | | | | | | | | | | | | zend_hash_get_current_key_ex(,,,NULL))
* | | | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-21/+21
| | | | | | | | | | | | | | | | semantick changes).
* | | | Merge branch 'PHP-5.6'Dmitry Stogov2015-03-031-9/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Added type checks Fixed bug #67741 (auto_prepend_file messes up __LINE__) Check variable type before its usage as IS_ARRAY. Fixed a bug that header value is not terminated by '\0' when accessed through getenv(). Conflicts: ext/soap/php_encoding.c ext/soap/php_http.c ext/soap/soap.c