]> granicus.if.org Git - php/commit
Mark resource-like objects as non-comparable
authorNikita Popov <nikita.ppv@gmail.com>
Tue, 16 Feb 2021 13:20:45 +0000 (14:20 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 16 Feb 2021 13:20:45 +0000 (14:20 +0100)
commitb63ea1047a5c130231cec5571861f1dcdf63a063
tree0fff21141ba410ca439833f64b41e86a1d22e2b4
parentcb9785add1bc8031531c2870c267e6a72efae6af
Mark resource-like objects as non-comparable

As these hold on to some internal resource, there can't be two
"equal" objects with different identity. Make sure the lack of
public properties doesn't result in these being treated as always
equal.
13 files changed:
ext/curl/interface.c
ext/curl/multi.c
ext/curl/share.c
ext/enchant/enchant.c
ext/gd/gd.c
ext/openssl/openssl.c
ext/shmop/shmop.c
ext/sockets/sockets.c
ext/sysvmsg/sysvmsg.c
ext/sysvsem/sysvsem.c
ext/sysvshm/sysvshm.c
ext/xml/xml.c
ext/zlib/zlib.c