Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115903 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55565 invoked from network); 31 Aug 2021 13:40:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Aug 2021 13:40:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 051F51804E3 for ; Tue, 31 Aug 2021 07:16:13 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS12876 195.154.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from smtp-in.fusiondirectory.org (smtp-in.fusiondirectory.org [195.154.20.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 31 Aug 2021 07:16:12 -0700 (PDT) Received: from smtp-in.fusiondirectory.org (localhost.localdomain [127.0.0.1]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id E24E4101889 for ; Tue, 31 Aug 2021 16:16:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= fusiondirectory.org; h=cc:content-transfer-encoding:content-type :content-type:date:from:from:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fusiondirectory; bh=+SPayZHB9Ig6LocP3+y2SysXNYZDvY6j7sCWjm/y9bM=; b=zNTWIHhCYmYx gIyjmPPQMnFqdQxV20RAYyyB4+nN5Ot4FQd21EdGNeozdWfwWiNUBJZWqXqvAbHJ HxtbFhRKTu5KVbC1s0s2VtlqaHvpPdupa7yqu4btq3nXPLyzpW3QGhA8yphzO++y b9HVvDKBVMizFUinmqQ7WHbl0Y+7jV7l93XohSUQyK9k0GYgq6bp+RcTUErdLtpw nXNJ2gpZOPR8AcDsceIb1YvJR7rRAOiUqgMhIBgSo0/MGPb0Zr9hjdBVE03A/iLh YHySMsL4m86e0asa2ZKWlFRgCnqTc7pHnDO313SSo5I9UTk0zLuhmenPdxWDVJD6 mP4pgk04Lg== Received: from smtp.fusiondirectory.org (imap.fusiondirectory.org [195.154.20.141]) by smtp-in.fusiondirectory.org (Proxmox) with ESMTP id 9ECA4101519 for ; Tue, 31 Aug 2021 16:16:10 +0200 (CEST) Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63]) by smtp.fusiondirectory.org (Postfix) with ESMTPSA id 626D725CBC3 for ; Tue, 31 Aug 2021 16:16:10 +0200 (CEST) Date: Tue, 31 Aug 2021 16:16:08 +0200 To: internals@lists.php.net Message-ID: <20210831161608.1e994d57@mcmic-probook.opensides.be> In-Reply-To: <20210831155642.1779f22f@mcmic-probook.opensides.be> References: <20210831155642.1779f22f@mcmic-probook.opensides.be> Organization: FusionDirectory X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Resources and object resources From: come.chilliet@fusiondirectory.org (=?UTF-8?B?Q8O0bWU=?= Chilliet) Le Tue, 31 Aug 2021 15:56:42 +0200, C=C3=B4me Chilliet a =C3=A9crit : > It seems to be consistent accross versions: https://3v4l.org/BHtAh >=20 > 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? I could not find a case of resource that became an object and = is > allowed on 3v4l to test this. There is no LDAP or CURL in there. Quick followup on this, I found a case that can be tested on 3v4l: https://3v4l.org/EKFP0 -> Fatal error: Uncaught Exception: Serialization of 'XMLParser' is not all= owed in /in/EKFP0:13 So it seems objects of this kind throw when serialized (I hope they all do that). It is not clear to me how that behaves with session, will it throw as soon as affected to $_SESSION, or at the end of the request? https://www.php.net/manual/en/class.xmlparser.php -> does fully opaque impl= ies non serializable?