Re: [PATCH] Namespace Patch, Beta 1

From: Date: Wed, 03 Aug 2005 21:49:46 +0000
Subject: Re: [PATCH] Namespace Patch, Beta 1
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-17519@lists.php.net to get a copy of this message
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"" <cshmoove@hotmail.com> 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

« previous php.internals (#17519) next »