nielsdos
6ba0b06819
Fix GH-8426: make test fail while soap extension build
...
If you build soap as a shared object, then these tests fail on
non-Windows, or when the PHP install hasn't been make install-ed yet,
but is executed from the development directory.
Closes GH-11211.
2023-05-09 19:48:45 +02:00
Christoph M. Becker
24c297086d
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-9720: Null pointer dereference while serializing the response
2022-10-13 16:00:36 +02:00
Christoph M. Becker
e440e37fa8
Fix GH-9720: Null pointer dereference while serializing the response
...
When traversing the result array, we need to cater to `param_name`
possibly being `NULL`. Prior to PHP 7.0.0, this was implicitly done
because `param_name` was of type `char*`.
Closes GH-9739.
2022-10-13 15:56:08 +02:00
Christoph M. Becker
ee9a3fa762
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8538: SoapClient may strip parts of nmtokens
2022-05-23 16:51:32 +02:00
Christoph M. Becker
2a13304b2e
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.
2022-05-23 16:49:12 +02:00
Nikita Popov
de6cf68ac4
Fix missing string copy
...
I changed this to a zend_string_copy, but that's not correct in
this case, as we still append to the string below.
Also fix a test on 32-bit.
2021-08-20 14:15:23 +02:00
Nikita Popov
6b05d958aa
Make internal SoapServer/SoapClient state private
...
This was previously implicitly public due to the use of dynamic
properties. Make this internal state private.
If someone complains, we can consider relaxing this to protected
or public on a case-by-case basis.
2021-08-20 12:54:39 +02:00
Nikita Popov
e6c6abf6b4
Declare remaining SoapClient properties
2021-08-20 12:50:19 +02:00
Nikita Popov
32d663e198
Declare SoapFault properties
2021-08-20 10:08:22 +02:00
Nikita Popov
44befbdc01
Don't convert Error exception to SoapFault
...
Error exceptions should generally not be converted into domain-
specific exception types. They indicate programming errors that
should not be handled locally.
2021-08-20 10:06:11 +02:00
Nikita Popov
018cb891cf
Declare some SoapClient properties
...
This is only a subset of all properties for now (those without
underscore).
2021-08-19 16:15:41 +02:00
Nikita Popov
c58c926034
Declare SoapVar properties
2021-08-19 12:35:37 +02:00
Máté Kocsis
75a678a7e3
Declare tentative return types for Zend ( #7251 )
...
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2021-07-19 13:44:20 +02:00
Nikita Popov
9491694903
Deprecate SoapClient ssl_method option
...
Instead use ssl stream context options instead. The direct
equivalent would be crypto_method, but min_proto_version /
max_proto_version are recommended instead.
Part of https://wiki.php.net/rfc/deprecations_php_8_1 .
2021-07-14 09:36:26 +02:00
Patrick Allaert
ac18dd0dc7
Prefer EXPECT over EXPECTF
2021-06-29 17:13:02 +02:00
George Peter Banyard
b6958bb847
Implement "Deprecate implicit non-integer-compatible float to int conversions" RFC. ( #6661 )
...
RFC: https://wiki.php.net/rfc/implicit-float-int-deprecate
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com >
2021-05-31 15:48:45 +01:00
Nikita Popov
f4865010a8
Add missing type declarations in soap tests
2021-05-26 12:21:45 +02:00
Máté Kocsis
8ae4b56027
Declare tentative return types for ext/soap
...
Closes GH-7001
2021-05-26 12:18:51 +02:00
Nikita Popov
77201d7013
Avoid accessing localhost in some soap tests
...
On some systems, this can make these tests very slow, as they end
up waiting for a timeout.
Instead intercept the sent request using __doRequest().
2021-05-19 12:54:46 +02:00
Máté Kocsis
30a082cb16
Make some exception properties typed
...
Closes GH-6891
2021-04-22 10:22:50 +02:00
Max Semenik
7f2f0c007c
Migrate skip checks to --EXTENSIONS--, p4
...
For rationale, see #6787
Extensions migrated in part 4:
* simplexml
* skeleton
* soap
* spl
* sqlite3
* sysvmsg
* sysvsem
* tidy - also removed a check for an ancient dependency version
2021-04-08 10:36:44 +02:00
Christoph M. Becker
8f1ec5be60
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix #69668 : SOAP special XML characters in namespace URIs not encoded
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de >
2021-03-29 14:20:13 +02:00
Christoph M. Becker
dd227f61df
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix #69668 : SOAP special XML characters in namespace URIs not encoded
Signed-off-by: Christoph M. Becker <cmbecker69@gmx.de >
2021-03-29 14:19:39 +02:00
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
Dmitry Stogov
72c3ededed
Change the order of properties used for var_dump(), serialize(), comparison, etc.
...
Now properties are ordered according to their layout in zend_object structure.
2021-03-01 13:29:49 +03:00
Stanislav Malyshev
f2994786f3
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fix bug #80672 - Null Dereference in SoapClient
2021-02-01 00:17:02 -08:00
Stanislav Malyshev
d94d0dda29
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
Fix bug #80672 - Null Dereference in SoapClient
2021-01-31 21:42:48 -08: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
Nikita Popov
6ab4e330ac
Use ephemeral port in more server tests
...
Port the main php_cli_server.inc to use ephemeral ports, thus
allowing CLI server tests to be parallelized.
A complication here is that we also need to give each test a
separate doc root, to avoid index.php files writing over each
other.
Closes GH-6375.
2020-10-23 14:26:34 +02:00
Nikita Popov
c4a25da096
Update ext/soap parameter names
...
Closes GH-6300.
2020-10-08 16:32:01 +02:00
Nikita Popov
9e32e1322e
Accept bool in SoapClient::__doRequest
...
$one_way is a boolean argument.
2020-10-08 12:36:49 +02:00
Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
Sara Golemon
95f2583743
Allow http tests to run in parallel by using ephemeral ports
2020-09-17 14:38:54 +00:00
Máté Kocsis
9975986b7e
Improve error messages mentioning parameters instead of arguments
...
Closes GH-5999
2020-09-09 10:47:43 +02:00
Máté Kocsis
e50449bcb4
Use the canonical order of types in array|string ZPP error messages
2020-09-04 14:32:33 +02:00
Máté Kocsis
47d9446c48
Promote warnings to exceptions in ext/soap and ext/xmlwriter
...
Closes GH-5998
2020-09-01 14:22:19 +02:00
Matteo Beccati
cf3fb14679
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #47021 : SoapClient stumbles over WSDL delivered with "Transfer-Encoding: chunked"
2020-08-18 18:31:11 +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
Máté Kocsis
2803c8fb8d
Add all the missing parameter types to stubs
...
Closes GH-5955
2020-08-13 14:47:18 +02:00
Máté Kocsis
7aacc705d0
Add many missing closing PHP tags to tests
...
Closes GH-5958
2020-08-09 22:03:36 +02:00
Nikita Popov
ac56ca0dcc
Separate __call and __soapCall implementations
...
This is overly pedantic, but allows us to enable more arginfo
consistency checks.
2020-07-21 12:59:28 +02:00
Máté Kocsis
d30cd7d7e7
Review the usage of apostrophes in error messages
...
Closes GH-5590
2020-07-10 21:05:28 +02:00
Fabien Villepinte
0c6d06ecfa
Replace EXPECTF when possible
...
Closes GH-5779
2020-06-29 21:31:44 +02:00
Rod Elias
682e2f6c20
Trim trailing whitespaces and fix code style
...
Closes GH-5554.
2020-05-12 17:00:11 +02:00
Máté Kocsis
4a816584a4
Make float to string casts locale-independent
...
From now on, float to string casting will always behave locale-independently.
RFC: https://wiki.php.net/rfc/locale_independent_float_to_string
Closes GH-5224
Co-authored-by: George Peter Banyard <girgias@php.net >
2020-05-08 10:52:23 +02:00
Xinchen Hui
acee66ae8c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79536 (zend_clear_exception prevent exception's destructor to be called).
2020-04-29 18:59:01 +08: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
b2f7be7214
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79357
2020-03-09 15:01:48 +01:00