Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113983 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31167 invoked from network); 6 Apr 2021 23:17:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Apr 2021 23:17:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 471AE1804B3 for ; Tue, 6 Apr 2021 16:16:08 -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.8 required=5.0 tests=BAYES_05, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 6 Apr 2021 16:16:07 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id r8so7835424lfp.10 for ; Tue, 06 Apr 2021 16:16:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u2TpxLCVoLpqCYueTQC2Nj65PttvJl+h8YVUFr/FyXU=; b=B7TPc5sV4UGGWsAQ46NQkJyCNtO2gaykODQQ31Z1SjdF6x9NQ7ui88BWbvEzlDi5nb oYL5cU0JU3jBGIr7POPUrRiMdnk78mgti40uSuarp5R+EQkMZpG6aqcgR/PbQYDACC9l TJqCzFhb6E/x128JNWHaOBf/Hwpr7ejDLhuAepbADXAU9xcgZvw0ylSQZwx7QVkW7dXI xu8qziULaldSvBHUaa/6tqArNKZld7FylaGdMDmvTMQ/PatAn3xO+KsSvjqv4Z0QV4DR bGt6po4MOuTkqkH4LxMTECIg4SUYLnTjNVIKjF97CDHIrWYE231oM3a6Sxx8hk0YQxL0 QnQw== X-Gm-Message-State: AOAM5332/Vt/vLDIxpMfouvvkMHE7m97oxPlbXMorU0TVTXfeP07pxXD E6Cw+usiar3Kst7Ppwao3mZ0RAaNZm5IShQv1V9FxA== X-Google-Smtp-Source: ABdhPJx3e40Q5EgMIz2CT7NGzZacda23DJL1dguJRyIBqwyMA2YEmlvoTa5j/puW98aKLhXu55IEGrEyU+zxO3y3BCQ= X-Received: by 2002:ac2:5052:: with SMTP id a18mr356551lfm.55.1617750965933; Tue, 06 Apr 2021 16:16:05 -0700 (PDT) MIME-Version: 1.0 References: <754310d2-f12e-84fc-cbc8-55f6e46e2ff8@gmail.com> In-Reply-To: <754310d2-f12e-84fc-cbc8-55f6e46e2ff8@gmail.com> Date: Tue, 6 Apr 2021 18:15:55 -0500 Message-ID: To: Rowan Tommins Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000a8e7e205bf55ff37" Subject: Re: [PHP-DEV] Function getdir() accidentally exists From: pollita@php.net (Sara Golemon) --000000000000a8e7e205bf55ff37 Content-Type: text/plain; charset="UTF-8" On Tue, Apr 6, 2021 at 5:04 PM Rowan Tommins wrote: > Because the PHP function didn't match the C function name, > this got translated to a function *alias* in PHP 4 [1]: > Curious, since PHP_NAMED_FE *did* exist in this revision that Ze'ev didn't choose to use that macro. Mid 1999 though, so I imagine the development pace going into ZE1 was pretty heavy. Whoopsie! > The obvious question is: should this be considered a bug, and undone, > and if so, how? > > The answer is probably to do what should have been done 20 years ago, > and rename the internal definition to match the function name exposed to > the user. > With my 8.0 RM hat on, I say we do that. Call this a bug that the *undocumented* function existed in 8.0.0 through 8.0.3 and remove it. The window of code that will break will be vanishingly small, and if it does impact anyone, the fix is to call dir() instead. Sorted. As to whether or not we deprecate dir()/Directory in 8.x... eh... I'm swiss on that. It's been there for ages and isn't hurting anyone, is it? -Sara --000000000000a8e7e205bf55ff37--