Re: [PHP-DEV] Resources and object resources

2021-08-31 Thread Nikita Popov
On Tue, Aug 31, 2021 at 4:16 PM Côme Chilliet < come.chill...@fusiondirectory.org> wrote: > Le Tue, 31 Aug 2021 15:56:42 +0200, > Côme Chilliet a écrit : > > It seems to be consistent accross versions: https://3v4l.org/BHtAh > > > > But what will happen when LDAP connections are turned into

Re: [PHP-DEV] Resources and object resources

2021-08-31 Thread Côme Chilliet
Le Tue, 31 Aug 2021 15:56:42 +0200, Côme Chilliet a écrit : > It seems to be consistent accross versions: https://3v4l.org/BHtAh > > But what will happen when LDAP connections are turned into objects in 8.1? > Will they also become int(0) upon serialization or will they behave in an > other way?

[PHP-DEV] Resources and object resources

2021-08-31 Thread Côme Chilliet
Hello, Resources cannot be serialized. This is mentionned on https://www.php.net/manual/en/function.serialize.php , but one can easily miss it. The information does not seem to appear on https://www.php.net/manual/en/language.oop5.serialization.php and