Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125548 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 21CC21A00BD for ; Sat, 14 Sep 2024 17:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726333693; bh=fFsxiM9/j1ktRpMHCGuONoDhGzoZBwfotd6J0E3Cv3k=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=njbxAB3aDIv5J2Y5KvIrFyNdNQGNEa1Z+OU1nfntzsdZo8MXugGlouPDlP3hUUNn1 FxBvw0gNv2p7sp8oo2eewTi2oVJw8kNS+LZ2LtuDojYRm+IsrbWEGLX+RjvLcghn86 zXNavMaGW3DX3FCefUeZzRRF1GDg/Tk5BJIEFo/ZsF0g5rXdbv9KaECdl9ZqqpY2Hv /rNYB6tFj/1qpkVZUnb1yeKgkJ8Zu/w/pbyqqbt8kgY8mhLCvOtqyoCDBaiUHk/Gfr s/QQxCLGY4X2LW2lqJvd6uVoRsGC1bJzl6EnIA4hEC/UEqWo0XR6Z5/glUpLhNIav+ b4Ql3YesXWvSA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B752E180077 for ; Sat, 14 Sep 2024 17:08:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 14 Sep 2024 17:08:12 +0000 (UTC) Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-7a99de9beb2so184692385a.3 for ; Sat, 14 Sep 2024 10:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726333568; x=1726938368; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=fFsxiM9/j1ktRpMHCGuONoDhGzoZBwfotd6J0E3Cv3k=; b=BtZ0KogQtJ1cZm4s1imZCe/QpwXJRv8LIQRdtqS6iBvczfK2/wqgs3zyzO8uNT+XBX OFbd9bapYkf5YvIbSI3GkgYWakx/qrueb1sxU3o6nhBoN845kVnGTwGzpw6K6ephR81P gQs8/wSQkBhmQmgcd2qT/Kng+s3KKehE2cPocQRsDOJlZdjAKEkbZij+7Ux+O5tKjVrO Z/r3HUD0V35nDFU+JJQ564w7NCp0oArdyR0phMwperCYk26P9qWJJr9kkdAaLw7BpFVf E4DbDpQAGCrGEzCe/7aZd1LpwAWB1QWYV+WcidUIFTvmJdIWS6Dc+tn7BFLGQvw5HTgC 1Sxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726333568; x=1726938368; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fFsxiM9/j1ktRpMHCGuONoDhGzoZBwfotd6J0E3Cv3k=; b=jp7oZ5MfIvfRcLEq3HYXVcedJ9hodB6XpTuTCEoP6r7qNXPAaXHWfSkOfUpOrBzoa6 dUtcQclAkN2mvrLRMqfoaG1aSVW/8XqtEcyYdWPJoq+BnFun31/5VJi+EL/F6E7+77fr s2qTBs71s3rDVkzCcdiyDsLvbd5KZNmm/MUP5dBYx5LWgfJ3bWPKQDBZtTFBbESgDho3 5H9/uxZhoQq+JWGDNUqgjf9G8xWt0i9P9E2tV77BXK9HhzseWHbPVbnvXzrwWV5tx3ED FXI97pot8lV5kJfVoQhomxABac+CqWhrTzHlsN6I/NTjrh3cwn//102n+vseINPy7NN9 uX0Q== X-Gm-Message-State: AOJu0Yy96U6LrdQ5T1siGIgiYuwJKwYiNxAcoZ3G/mUt/ZL/VsquIRi7 mswh2yIscZR0exQ2SOg5qDDtjmyfV2E7G+iNNLU5Imo5mXv5yXo9oAALt590+pjNnlLbhykjMCH AV7weZHJPWmi/bEu1Ar/KTdf3mxrF1A61 X-Google-Smtp-Source: AGHT+IF3x8duJE3AOCk1AS1cuZTNRVfpaB3qHu2dlN5QW9NRtaH6m3QZzKkzASwUDwSKnTps/s4/3zFga/LiTJ60F5w= X-Received: by 2002:a05:620a:370f:b0:79f:793:9a63 with SMTP id af79cd13be357-7a9e5f60eaamr1560914185a.44.1726333567894; Sat, 14 Sep 2024 10:06:07 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <2VnM6xycBpzqzDnAZKWS4zxCSUjvoKywJRiBzTcGhS8axaFS7QwbGNQtjkovo1jQi1XLiEGGTi3KfQfWoxUT527U_-6IGO3092BZdW436q0=@gpb.moe> In-Reply-To: <2VnM6xycBpzqzDnAZKWS4zxCSUjvoKywJRiBzTcGhS8axaFS7QwbGNQtjkovo1jQi1XLiEGGTi3KfQfWoxUT527U_-6IGO3092BZdW436q0=@gpb.moe> Date: Sat, 14 Sep 2024 18:05:56 +0100 Message-ID: Subject: Re: [PHP-DEV] [RFC] Change Directory class to behave like an opaque object To: "Gina P. Banyard" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000140b680622175b75" From: devnexen@gmail.com (David CARLIER) --000000000000140b680622175b75 Content-Type: text/plain; charset="UTF-8" Seems right thing to do. I saw some usage like final class Dir extends Directory { } also did not see much in *new* codes Directory being extended so 8.5 sure. Cheers. On Sat, 14 Sept 2024 at 16:36, Gina P. Banyard wrote: > Hello internals, > > I came across the Directory class while doing some code exploration of > ext/standard. > This class is effectively an opaque object for Directory resources, > however it doesn't behave like one, as it has existed since PHP 4. > > As such, I am proposing an RFC to turn this class into an opaque object. > > RFC: https://wiki.php.net/rfc/directory-opaque-object > > > Best regards, > > Gina P. Banyard > --000000000000140b680622175b75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Seems right thing to do.

I saw some usa= ge like=C2=A0

final class Dir extends Directory{
}

also did not see much in new co= des Directory being extended so 8.5 sure.

Cheers.<= /div>

On Sat, 14 Sept 2024 at 16:36, Gina P. Banyard <internals@gpb.moe&g= t; wrote:
Hello = internals,

I came across the Directory class while doing some code exploration of ext/= standard.
This class is effectively an opaque object for Directory resources, however= it doesn't behave like one, as it has existed since PHP 4.

As such, I am proposing an RFC to turn this class into an opaque object.
RFC: https://wiki.php.net/rfc/directory-opaque-objec= t


Best regards,

Gina P. Banyard
--000000000000140b680622175b75--