Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85869 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69182 invoked from network); 19 Apr 2015 13:36:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Apr 2015 13:36:38 -0000 Authentication-Results: pb1.pair.com header.from=geolim4@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=geolim4@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.174 as permitted sender) X-PHP-List-Original-Sender: geolim4@gmail.com X-Host-Fingerprint: 209.85.220.174 mail-qk0-f174.google.com Received: from [209.85.220.174] ([209.85.220.174:33623] helo=mail-qk0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/11-57547-56FA3355 for ; Sun, 19 Apr 2015 09:36:38 -0400 Received: by qkx62 with SMTP id 62so173867530qkx.0 for ; Sun, 19 Apr 2015 06:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Y4mWYJCNrkJ05uy+X4lyx6dnOnFs+wyQJIk8aA+kaRw=; b=Yh/CpQYXCbZr5LfzBY9MVEdQjNf/8aUU+tTH1H+kl+XR4w+Mx5GlSzX2/5KeNFDHRS 6HBbuwusCPEeeBarYZQHkvKdRthr4swC8WNiAR9Wvl+vEGXIi+2RQzqJqUCJjxG4RwLH nrNGLyOf1og2FoKYAaM0PBmcEJQH+R8VK8SQuhtj8WZFlSJ5zCUQgLAX47Mk8C2UHiTc BvhzGV+dANrZWM4Wr7Mir1/bvFqJXYJUQ42lfhhADqdm0TspQ2Pg9ONSsYiSJiqxqctt rOTLwwS8Yd9ZYzltt4BNNsXprUuor7zQ8EY0vbuSgYrHrt+ohKHsiS2Z1r2X63gkLjvX X4eA== X-Received: by 10.229.175.131 with SMTP id ba3mr13382784qcb.3.1429450594837; Sun, 19 Apr 2015 06:36:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.94.42 with HTTP; Sun, 19 Apr 2015 06:36:04 -0700 (PDT) In-Reply-To: <008901d07aa5$6d1af4a0$4750dde0$@php.net> References: <008901d07aa5$6d1af4a0$4750dde0$@php.net> Date: Sun, 19 Apr 2015 15:36:04 +0200 Message-ID: To: francois@php.net Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c2875aedec72051413e62d Subject: Re: [PHP-DEV] RFC: spl_autoload_register() should provide kind of entity to load From: geolim4@gmail.com (georges) --001a11c2875aedec72051413e62d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yes, i finally rewritten major part of my code following the recommended SF2 standard for naming convention of trait/interfaces. Thanks Internals. Regards, Geo. Geolim4 2015-04-19 15:33 GMT+02:00 Fran=C3=A7ois Laupretre : > > De : georges [mailto:geolim4@gmail.com] > > > > Currently spl_autoload_register() pass the name of the class entity to > the > > first *Callable* argument=E2=80=8B, but there is now way (as i far i kn= ow) to > know > > what kind of entity we're looking for. > > -Class ? > > -Interface ? > > -Trait? > > As others already said, classes, interfaces, and trait names share the > same table, and there are a lot of places where you cannot determine the > type you're looking for when autoloading a symbol. > > However, we'll need to provide a type when we extend autoloading to > functions and constants, if we do it someday. > > Regards > > Fran=C3=A7ois > > > > --001a11c2875aedec72051413e62d--