History log of /php-src/ext/soap/soap.c (Results 1 – 25 of 619)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# cf469133 01-Jun-2024 Peter Kokot

Fix ZEND_DEBUG condition (#14408)

ZEND_DEBUG is always defined by the build system automatically, either
to value 0 or value 1.


# 47670616 01-Jun-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix bug #69280: SoapClient classmap doesn't support fully qualified class name (#14398)

There's a hash table that maps type names to class name, but names with
a leading backslash are no

Fix bug #69280: SoapClient classmap doesn't support fully qualified class name (#14398)

There's a hash table that maps type names to class name, but names with
a leading backslash are not supported. The engine has logic to strip
away the leading backslash that we should replicate here.

It works by checking if we need to make an actual copy in case an
unexpected (e.g. invalid data or leading backslash) situations are
detected. Upon making a copy we normalize the data in the table.

Furthermore, previously the code assumed that the key was always valid
and that the structure was a non-packed hash table. This isn't
necessarily the case. The new code fixes this as well.

Closes GH-14398.

show more ...


# e8c6c6f1 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix signedness issues in soap.c


# ca7a0df3 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Make some things const that can be const in soap


# 7834bd1a 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix parameter name warning


# 18233e0f 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix memory leaks with string function name lookups

There's a few leaks where the string is copied for lowercasing but not released.
Where possible, use the _lc functionality of zend_hash

Fix memory leaks with string function name lookups

There's a few leaks where the string is copied for lowercasing but not released.
Where possible, use the _lc functionality of zend_hash to do the lookup
to avoid the leaks that currently exist with the manual lowercasing.

Closes GH-14390.

show more ...


# 59651ee7 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Avoid string duplication in Soap function response (#14391)


# e4246433 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix signedness and argument order issues with argc handling in soap (#14389)


# 3096c715 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix build warning in release mode

This isn't warned on by default, and can break the build if werror is
used.


# 89c4db9c 30-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix reading zlib ini settings in ext-soap

zend_ini_long() actually expects the length without the NUL byte, but
we're passing the length *with* the NUL byte. This mess can actually be

Fix reading zlib ini settings in ext-soap

zend_ini_long() actually expects the length without the NUL byte, but
we're passing the length *with* the NUL byte. This mess can actually be
avoided altogether by using INI_INT, so use that instead.

Closes GH-14382.

show more ...


# 23912f55 30-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix memory leak if calling SoapServer::setClass() twice

Closes GH-14381.


# 51bb9c2c 30-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix memory leak if calling SoapServer::setObject() twice

Closes GH-14380.


# 6aa66e08 31-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix missing error restore code in ext-soap (#14379)

The begin and end macros should be paired, but some of the end macro
calls were missing.


# c7797fc8 29-May-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix bug GH-11941: soap with session persistence will silently fails when "seession" built as a shared object (#14362)

This adds an optional dependency on the session extension and adds the

Fix bug GH-11941: soap with session persistence will silently fails when "seession" built as a shared object (#14362)

This adds an optional dependency on the session extension and adds the
necessary APIs to make the functionality work with lazy binding.

This can be tested by configuring PHP with `--enable-session=shared` and
`--enable-soap=shared` and running the test suite, in particular the
buggy behaviour can be observed by the existing test `server009.phpt`.

show more ...


# 02f3df17 21-May-2024 Peter Kokot

Add missing ext/libxml dependency to ext/soap (#14285)

This adds the libxml extension to required dependencies for ext/soap
during the configuration phase (PHP_ADD_EXTENSION_DEP) and the

Add missing ext/libxml dependency to ext/soap (#14285)

This adds the libxml extension to required dependencies for ext/soap
during the configuration phase (PHP_ADD_EXTENSION_DEP) and the runtime
(ZEND_MOD_REQUIRED).

show more ...


# 8de92952 19-May-2024 Máté Kocsis

Add cast_object handler for objects which were recently converted from resources


# 92059106 07-May-2024 Máté Kocsis

Migrate SOAP table resource to array

Related to https://wiki.php.net/rfc/resource_to_object_conversion and https://github.com/php/php-tasks/issues/6


# 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


# 44b3cb2a 07-May-2024 Máté Kocsis

Migrate SOAP URL resource to object

Related to https://wiki.php.net/rfc/resource_to_object_conversion and https://github.com/php/php-tasks/issues/6


# b34b4d54 14-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix #44383: PHP DateTime not converted to xsd:datetime

Closes GH-12437.
Closes GH-11725.


# 53218b1a 27-Oct-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Mitigate #51561: SoapServer with a extented class and using sessions, lost the setPersistence()

The problem is that in the testcase, the session is started before the
parent class is loa

Mitigate #51561: SoapServer with a extented class and using sessions, lost the setPersistence()

The problem is that in the testcase, the session is started before the
parent class is loaded. This causes an incomplete class in the session
storage. Then in the soap code the check
`Z_OBJCE_P(tmp_soap_p) == service->soap_class.ce` fails because it is
the incomplete class. It is a silent failure.

We cannot fix this easily. But we should let the user know something is
wrong, because it leaves them confused otherwise. So emit an error to
let them know and suggest a fix.

Closes GH-12540.

show more ...


# e58af7c1 12-Oct-2023 Viktor Vassilyev

ext/soap: Add support for clark notation for namespaces in class map

Closes GH-12411.


# d5ad7510 08-Jun-2023 George Peter Banyard

More usage of known zend_str instead of C string (#11381)


# 9d5f2f13 20-Mar-2023 Ilija Tovilo

Use new ZSTR_INIT_LITERAL macro (#10879)


# 7936c808 23-Jan-2023 Máté Kocsis

Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)


12345678910>>...25