diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-25 12:10:41 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-28 11:51:35 +0200 |
commit | 55dd3945fb32cf35e0385febc0114a0036d50190 (patch) | |
tree | 960e07d67952b934fb0b4503e8cbbeeae1a26599 /ext/xmlrpc/xmlrpc-epi-php.c | |
parent | efbe96166dc32f85e57e2c23e0c1440488a42432 (diff) | |
download | php-git-55dd3945fb32cf35e0385febc0114a0036d50190.tar.gz |
Convert Exception::getMessage() result to string
We specify that the return type of Exception::getMessage() is a
string. However, we don't currently ensure this, because
Exception::$message is a protected member that can be set to any
type. Fix this by performing an explicit type-cast.
This also requires a temporary refcount increment in the __toString()
object handler, because there is no additional owner of the object,
and it may get released prematurely as part of the __toString() call.
Diffstat (limited to 'ext/xmlrpc/xmlrpc-epi-php.c')
0 files changed, 0 insertions, 0 deletions