Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16972 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92019 invoked by uid 1010); 28 Jun 2005 22:59:41 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92004 invoked from network); 28 Jun 2005 22:59:41 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 28 Jun 2005 22:59:41 -0000 X-Host-Fingerprint: 64.233.184.200 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.200:61034] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 0D/89-00424-D56D1C24 for ; Tue, 28 Jun 2005 18:59:41 -0400 Received: by wproxy.gmail.com with SMTP id i21so699872wra for ; Tue, 28 Jun 2005 15:59:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZhfNcD7V1BDUoesRKyILzOHBtWV8fcuO4UQRXltmLUe2OT1TqABOdJJxKciRRlpOYrKh0JFyuaE2wDGztPoMceD2L5yxHjC9olk0LnM35z/rupXES5B26IBkdrJ0tEpDjrX5quYfczTIfZPc5UmElaiTXdawM8hq9mlvq518ymo= Received: by 10.54.52.32 with SMTP id z32mr196508wrz; Tue, 28 Jun 2005 15:59:38 -0700 (PDT) Received: by 10.54.51.39 with HTTP; Tue, 28 Jun 2005 15:59:38 -0700 (PDT) Message-ID: <65530d4805062815597ac41a31@mail.gmail.com> Date: Tue, 28 Jun 2005 16:59:38 -0600 Reply-To: Jesse Binam To: =?ISO-8859-1?Q?Nicolas_B=E9rard_Nault?= Cc: internals@lists.php.net In-Reply-To: <30bd80240506281536c80be36@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <65530d4805062723261ef6c7be@mail.gmail.com> <30bd80240506281536c80be36@mail.gmail.com> Subject: Re: [PHP-DEV] Object execution From: sirbinam@gmail.com (Jesse Binam) For example... --- example.php --- --- end example.php --- `php -q example.php` would output "Hello World!" With this you could potentially eliminate the global scope if you chose to. For the record, by no means do I want PHP to be Java. I just think this feature would be a nice finishing touch to a very OOP style app. Otherwise you basically have to have a one liner to call something like app::run(). On 6/28/05, Nicolas B=E9rard Nault wrote: > What do you mean by the script being a class ? >=20 > On 6/28/05, Jesse Binam wrote: > > Any thoughts on the idea of a magic method called "__main()" or > > "__exec()" that would be called if the script being executed is a > > class. > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > Nicolas B=E9rard Nault (nicobn@gmail.com) > "Maybe nature is fundamentally ugly, chaotic and complicated. But if > it's like that, then I want out." -- Steven Weinberg (prix Nobel de > physique, 1979). >