Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41376 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42562 invoked from network); 25 Oct 2008 21:12:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Oct 2008 21:12:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 208.83.222.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 208.83.222.18 unknown Linux 2.6 Received: from [208.83.222.18] ([208.83.222.18:40829] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/61-29251-0DB83094 for ; Sat, 25 Oct 2008 17:12:49 -0400 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id C4BD8C107E0; Sat, 25 Oct 2008 14:12:28 -0700 (MST) Received: from [192.168.0.106] (unknown [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 48A73C107DF; Sat, 25 Oct 2008 14:12:28 -0700 (MST) Message-ID: <49038BD2.80200@chiaraquartet.net> Date: Sat, 25 Oct 2008 16:12:50 -0500 User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: David Grudl CC: PHP internals References: <46BD96DF-B594-490C-9812-D7ACDD976205@pooteeweet.org> <49038A84.7060501@grudl.com> In-Reply-To: <49038A84.7060501@grudl.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: From: greg@chiaraquartet.net (Gregory Beaver) David Grudl wrote: > I hope it is only very bad joke :-( > > > namespace myNamespace; > > class theLoader > { > function load($class) { ... } > } > > > // somewhere else > spl_autoload_register(array("myNamespace\theLoader", "load")); > -> registers myNamespaceheLoader::load() Fortunately, there is a simple workaround: spl_autoload_register(array('myNamespace\theLoader', 'load')); or slightly less simple: spl_autoload_register(array("myNamespace\\theLoader", "load")); Greg