Christoph M. Becker
75cb678206
Fix #69668 : SOAP special XML characters in namespace URIs not encoded
...
`xmlNewNs()` does not XML encode the passed `href`, so we need to do
that manually.
Closes GH-6804.
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de >
2021-03-29 14:17:55 +02:00
Nikita Popov
51d76c346e
Fix persistent leak on load_wsdl_ex failure
...
Move the load_wsdl_ex call into the zend_try that destroys the
docs hash table. The wsdl will be inserted into docs early on,
and will thus be released on subsequent bailout.
2021-02-02 10:05:35 +01:00
Nikita Popov
ab8177de2c
Fix build
2021-02-01 09:46:17 +01:00
Stanislav Malyshev
86de4d7af6
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug #80672 - Null Dereference in SoapClient
2021-01-31 21:42:41 -08:00
Stanislav Malyshev
3c939e3f69
Fix bug #80672 - Null Dereference in SoapClient
2021-01-31 21:15:23 -08:00
Dmitry Stogov
2a0e4b88fd
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed incorrect error message
2020-09-30 08:37:35 +03:00
George Peter Banyard
1616363850
Fixed incorrect error message
2020-09-30 08:37:16 +03:00
Dmitry Stogov
6f0b232648
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fixed incorrect logical condition
2020-09-30 08:29:21 +03:00
George Peter Banyard
3f5c47af3b
Fixed incorrect logical condition
2020-09-30 08:29:00 +03:00
Nikita Popov
f0d2efbadc
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
ext/soap: Compare Set-Cookie header case-insensitively
2020-09-17 10:31:30 +02:00
Gabríel Arthúr Pétursson
efc52f1754
ext/soap: Compare Set-Cookie header case-insensitively
...
Closes GH-6143.
2020-09-17 10:31:06 +02:00
Matteo Beccati
3877172411
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #47021 : SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
2020-08-18 18:27:26 +02:00
Matteo Beccati
f7c43b8c72
Fix #47021 : SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
2020-08-18 18:10:39 +02:00
Christoph M. Becker
3e8172d27b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix HTTP response status code
2020-08-18 08:35:56 +02:00
Christoph M. Becker
1ae80f8c92
Fix HTTP response status code
2020-08-18 08:33:45 +02:00
Xinchen Hui
8555c2bff0
Fixed bug #79536 (zend_clear_exception prevent exception's destructor to be called).
2020-04-29 18:58:28 +08:00
Nikita Popov
760faa12b2
Fixed bug #79357
...
Peculiarly, for once the cause was not SOAPs "interesting" error
handling, but a bug in the call trampoline for internal functions...
2020-03-09 15:01:31 +01:00
Nikita Popov
58b17906f5
Apply tidy formatting
...
Mostly reindent PHP scripts to spaces.
2020-02-03 13:41:31 +01:00
Christoph M. Becker
1ea5d2e5ad
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Make test independent of online XSD schema
Yet another check for php_strip_tags_ex()
2020-01-24 14:19:17 +01:00
Christoph M. Becker
49cbd23155
Make test independent of online XSD schema
...
The test still needs to access <http://www.w3.org/2009/01/xml.xsd >, but
at least we no longer depend on <http://x-road.eu/xsd/x-road.xsd >,
which may be moved again.
2020-01-24 14:18:16 +01:00
Nikita Popov
47b1a58e96
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix bug76348.phpt
2020-01-23 15:09:54 +01:00
Nikita Popov
2c2cbbbf55
Fix bug76348.phpt
...
Adjust for URL change in XSD file and mark as online test.
Is it possible for use to store http://x-road.eu/xsd/xroad.xsd
locally instead? Do relative file system paths work here?
I'm not familiar with this.
2020-01-23 15:08:20 +01:00
George Peter Banyard
6d6d954d0d
Cleanup of remaining E_STRICT in tests
2019-07-23 11:27:23 +02:00
Nikita Popov
d59aac58b3
Report errors from stream read and write operations
...
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.
2019-07-22 17:17:28 +02:00
Nikita Popov
290e520c03
Use ZEND_HASH_FOREACH APIs in a few more places
2019-07-16 12:20:16 +02:00
Nikita Popov
79b5b1a97f
Merge branch 'PHP-7.3' into PHP-7.4
2019-07-12 16:51:52 +02:00
Nikita Popov
3f73916f10
Merge branch 'PHP-7.2' into PHP-7.3
2019-07-12 16:51:47 +02:00
Nikita Popov
a7de2af46c
Use TRY_ADDREF/TRY_DELREF in soap
...
The DELREF part is a possible fix for bug #78278 , the ADDREF part
is a drive-by fix.
2019-07-12 16:50:43 +02:00
Nikita Popov
17f7fb7605
Switch to using shell-less proc_open() in various server tests
2019-07-11 15:48:10 +02:00
Nikita Popov
ba8c4894d8
Add server conflict to soap custom content type test
2019-07-11 10:26:53 +02:00
Dmitry Stogov
143f4e3b5c
Reduce overhead
2019-06-28 12:03:01 +03:00
Nikita Popov
78375aa52f
Fix persistent XML memory leaks in SOAP
...
SOAP uses a horrible bailout based error handling approach -- avoid
leaking persistent XML memory by catching bailouts in a number of
places.
2019-06-27 14:20:10 +02:00
Nikita Popov
788a68900d
Fix xml doc leak in soap
2019-06-26 11:43:11 +02:00
Nikita Popov
27d3373496
SOAP: Avoid indexing into null pointer
2019-06-20 16:22:34 +02:00
Nikita Popov
8743d5e99a
Avoid signed shift ub in php_sdl
2019-06-19 17:27:09 +02:00
Nikita Popov
608097a901
Fix various instances of memcpy null ub
2019-06-19 17:27:09 +02:00
Nikita Popov
365a905e00
Suppress int to char conversion warnings
2019-06-12 11:54:13 +02:00
Nikita Popov
d2921af348
Use labs() on long integer
2019-06-12 11:54:13 +02:00
Dmitry Stogov
83804519df
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
2019-05-28 20:10:02 +03:00
Nikita Popov
b162c8f55a
Mark bug44811.phpt as an online test
...
For some reason this was checked on PHP-7.2 and PHP-7.3, but not
on PHP-7.4. Bad merge?
2019-05-22 11:43:56 +02:00
Nikita Popov
ce8be6f499
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-22 11:43:40 +02:00
Nikita Popov
3a719696bc
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-22 11:43:26 +02:00
Nikita Popov
3a0de243c3
Use a different URL in bug44811.phpt
2019-05-22 11:41:51 +02:00
Nikita Popov
4ebd9a5366
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-21 10:04:51 +02:00
Vincent JARDIN
5f8c22d415
Support content_type stream context option in soap
...
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 c55af3c65a
to the PHP 7.2 branch.
2019-05-21 10:04:15 +02:00
Vincent JARDIN
c55af3c65a
Support content_type stream context option in soap
...
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',
],
]),
]);
2019-05-13 10:51:03 +02:00
Peter Kokot
75fb74860d
Normalize comments in *nix build system m4 files
...
Normalization include:
- Use dnl for everything that can be ommitted when configure is built in
favor of the shell comment character # which is visible in the output.
- Line length normalized to 80 columns
- Dots for most of the one line sentences
- Macro definitions include similar pattern header comments now
2019-05-12 18:43:03 +02:00
Peter Kokot
4e0e0b8152
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Convert CRLF to LF in *.wsdl files
2019-05-11 17:16:50 +02:00
Peter Kokot
bec22af8d7
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Convert CRLF to LF in *.wsdl files
2019-05-11 17:15:08 +02:00
Peter Kokot
b15bfb9129
Convert CRLF to LF in *.wsdl files
...
These EOL types are part of different environments and not part of the
tests themselves.
2019-05-11 17:12:28 +02:00