Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6627 invoked from network); 13 Sep 2017 15:50:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2017 15:50:34 -0000 Authentication-Results: pb1.pair.com header.from=derokorian@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=derokorian@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.182 as permitted sender) X-PHP-List-Original-Sender: derokorian@gmail.com X-Host-Fingerprint: 209.85.223.182 mail-io0-f182.google.com Received: from [209.85.223.182] ([209.85.223.182:47388] helo=mail-io0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/F2-19300-9C359B95 for ; Wed, 13 Sep 2017 11:50:33 -0400 Received: by mail-io0-f182.google.com with SMTP id j141so3132502ioj.4 for ; Wed, 13 Sep 2017 08:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C+NYbQvruRnw1HQ+FE5a/ws/vNRdLyI6vvL2rKqg4Z0=; b=HzrZhMpFopSE8Y1r/1Ol8bCV+3B+zgZVyw66MYBr6pJqeZCCbdCqCpg1AzGjtE4p/p YbFn7CWttC83GdmFdOw+9uahHObyZFie0xqQRPSFkZ3fhb8gljvjIiiE5tIuJQ3EEOQ0 RNb4rdEt6JVHSHXvsZYnc1ArFDy5kiUoYTd3fDbdNHpQLZDYxq1VnicnAbl35hTvKF4A s/3wqiyR+aeAEvcuGKctVMQm6VlxPLLC1OnJDK7403Ar6II5RFrR+NGJ0Mqld8rSyA2w 3Gzq9Xvu9/B9zHpHoOG5v+kNmcP1hhcdScueJux3GwgVkbkRoGhV3OEh0YQDU8MnL8Tg 6XSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C+NYbQvruRnw1HQ+FE5a/ws/vNRdLyI6vvL2rKqg4Z0=; b=IZR+JS+Wycu2GYpuRF37rqgEXT+pDtc1iY+F9/ZgkwWOG47GmDJajZoemp2IuqDXIg 43Tx/22nqyVVcNcxqXAKpFidm4KBAU3n6KWkYLbHiMOiT5mqsAhP8u6TgNxuy661zAQX pudRzGFQhqoaRRsa7nhmBlr7PLtdGa3cLR7w+trJkK6B8/UtH9Pd7ym8dU+xxuZ2uQoe Honfbi/4iDwUqNzXbzeR/QFVGe7UVdi/VN5ohuHZ2XN00SQqX0Zlfmc1bJYdh74+sAjt q4rEA5+T47CG4tALCIFU3HmaMgHfvBwsAcR2OnBMumPnq6Fj/2ymcoJ+dJqhZuwyxutT 1zXA== X-Gm-Message-State: AHPjjUh3JIqd8g0fdKEpkEn7QWoll+rzMbALJ9kdlar16sDB68R6p3oR Vx1+0ndGI07ewLXgHBb+kuz4bMz3avGPLc6FqQ== X-Google-Smtp-Source: AOwi7QASzyBqXUUZJBm9cjLwrCoXrCynSTzzWPUDQQa333WQoex56kiXhZ4GeV4of+Of1Nn8d3BfmOWETc1qaxIr59g= X-Received: by 10.202.172.12 with SMTP id v12mr20271022oie.105.1505317830367; Wed, 13 Sep 2017 08:50:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.74.25 with HTTP; Wed, 13 Sep 2017 08:50:29 -0700 (PDT) In-Reply-To: References: <3D.0C.10715.383F8B95@pb1.pair.com> Date: Wed, 13 Sep 2017 09:50:29 -0600 Message-ID: To: Rowan Collins Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="001a113ce3f48da5130559141e50" Subject: Re: [PHP-DEV] Deprecate and remove case-insensitive constants? From: derokorian@gmail.com (Ryan Pallas) --001a113ce3f48da5130559141e50 Content-Type: text/plain; charset="UTF-8" On Wed, Sep 13, 2017 at 8:06 AM, Rowan Collins wrote: > On 13 September 2017 14:15:43 BST, Ryan Pallas > wrote: > >I must be missing something, there is no autoloader shipped with PHP. > > Just to be pedantically correct, there actually is an implementation > shipped, see http://php.net/spl_autoload It's even the default if you > don't pass your own function to spl_autoload_register. > Almost 2 decades in PHP, and still so much I don't know haha. I will point out though, that according to a comment [1] it does not replace the underscores with slashes as mentioned, and I see no where in the code [2] that it does either. [1] http://php.net/manual/en/function.spl-autoload.php#98762 [2] https://github.com/php/php-src/blob/master/ext/spl/php_spl.c#L306 > > Nonetheless, you are quite right that Tony's complaint is nonsensical, > because he could implement whatever autoloader suited his directory > structure, if he wanted to - even a case insensitive one. > > It is true that autoloading isn't mandatory, but it's also a complete > straw man, because Sara already made the same point herself: > > > I don't feel as though that's true of ... > > projects where autoloaders > > aren't used (not a small number). > > Regards, > > -- > Rowan Collins > [IMSoP] > --001a113ce3f48da5130559141e50--