Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97502 invoked from network); 31 May 2015 21:30:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2015 21:30:59 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.46 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.46 mail-pa0-f46.google.com Received: from [209.85.220.46] ([209.85.220.46:32872] helo=mail-pa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/24-32136-29D7B655 for ; Sun, 31 May 2015 17:30:59 -0400 Received: by padj3 with SMTP id j3so29520210pad.0 for ; Sun, 31 May 2015 14:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=3O7YWJvF+dDbD57ZicrzR6Uw+N3l6tjEFrdsce22b8g=; b=IGKCk2zYa96851bq5cbpk31uJydJph3BAHmcQKdJUvvuBsSWmvWy1OjtediBxsKYot Soo9FapwAtgKAhh6a+iT5w7V5gVYUi1lbyRy+PsUKcyfTxpvWNCX5k/0pAEQONdHB1bZ Mu3nCDxWJQhcpg5/bFPURrO7I0NhjgiUINXu4LvF/wXsmrD26GLa2ac5aMR64M6ebF4u DgvswjvR/aLrXEnA4PEb5FkYg9ikGN4IrFtcQ8F6b2X3zQr9vQ46gQ2k2MHTxAZjCGkk WhSihHX0MTeYCIq1vPP8G4v91966uALJKuPfJOadw0Z4W5yJUW/1kyvZPBVXbMqHqBK3 rljw== X-Received: by 10.70.0.143 with SMTP id 15mr35052814pde.13.1433107856406; Sun, 31 May 2015 14:30:56 -0700 (PDT) Received: from [192.168.2.145] (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id eo3sm12091305pbd.66.2015.05.31.14.30.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 May 2015 14:30:55 -0700 (PDT) Message-ID: <556B7D8B.4000909@gmail.com> Date: Sun, 31 May 2015 14:30:51 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Marc Bennewitz , PHP internals list References: <55636034.6010003@mabe.berlin> In-Reply-To: <55636034.6010003@mabe.berlin> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] ::class wrong case From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > That's annoying as I like to check the right class case on autoload to > detect mistakes. I'm not sure I understand this right, but if I do this sounds contradictory. I.e., if you are trying to autoload the class, you haven't loaded it yet. If you didn't, how would you know which case is "right"? > Are there any reasons to get the called case of the class instead or the > original one? The reason is that the former is constant fast operation while the latter requires actually loading the class. Which is much more expensive. -- Stas Malyshev smalyshev@gmail.com