Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13725 invoked by uid 1010); 3 Aug 2005 21:49:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13710 invoked from network); 3 Aug 2005 21:49:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Aug 2005 21:49:45 -0000 X-Host-Fingerprint: 63.118.113.4 miami4.us.univision.com Received: from ([63.118.113.4:15006] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FF/BB-04646-9FB31F24 for ; Wed, 03 Aug 2005 17:49:45 -0400 Message-ID: To: internals@lists.php.net References: Date: Wed, 3 Aug 2005 17:49:46 -0400 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Posted-By: 63.118.113.4 Subject: Re: [PATCH] Namespace Patch, Beta 1 From: jrhernandez05@gmail.com ("Jessie Hernandez") Yep, it's that simple! You can even import it and it'll work! In zend_lookup_class, the standard class_table search is done first, but on failure, before it calls __autoload, the class name will try to be "resolved" using the import table for the executing file. If a matching entry in the import table is found, then it'll again try to search in class_table using the full name. Since this class has been defined in the extension, the search would be successful and __autoload will not be called. -- Jessie ""l0t3k"" wrote in message news:FC.7B.04646.FC831F24@pb1.pair.com... > Jesse, > another thing to consider (if you havent already) is extension support. > IOW, how do i place my extension-created class into a namespace. Is this as > simple as declaring the class name as Ns:Class ? > > l0t3k