Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2319 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63657 invoked from network); 13 Jun 2003 22:30:02 -0000 Received: from unknown (HELO mail.3gstech.com) (216.239.132.110) by pb1.pair.com with SMTP; 13 Jun 2003 22:30:02 -0000 Received: from 3gstech.com (ip12-162-2-41.us01.qualys.com [12.162.2.41]) by mail.3gstech.com (Postfix) with ESMTP id 27E739CF10D for ; Fri, 13 Jun 2003 15:30:01 -0700 (PDT) Message-ID: <3EEA503D.10208@3gstech.com> Date: Fri, 13 Jun 2003 15:29:17 -0700 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: PHP5 namespace question From: waboring@3gstech.com (walt boring) Howdy, I was curious if it is possible to have an include work inside of a namespace for php5, and have classes/functions/defines that are declared in the included file become part of the namespace? This is usefull for large library projects, where it would be combersome for obvious reasons to have all classes/functions/defines to exist in the same file, just to make it part of the namespace. namespace mylib { include_once("my_foo_classes.php"); include_once("my_bar_classes.php"); include_once("my_blah_classes.php"); include_once("my_foo_functions.php"); } Walt