Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20517 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68664 invoked by uid 1010); 26 Nov 2005 12:04:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68649 invoked from network); 26 Nov 2005 12:04:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2005 12:04:00 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:51473] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id BE/67-56276-E2F48834 for ; Sat, 26 Nov 2005 07:03:58 -0500 Received: from [192.168.1.3] (dslb-084-063-047-015.pools.arcor-ip.net [84.63.47.15]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 96252610282; Sat, 26 Nov 2005 13:10:11 +0100 (CET) Date: Sat, 26 Nov 2005 13:01:59 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <646562613.20051126130159@marcus-boerger.de> To: Martin Jansen Cc: Ron Korving , internals@lists.php.net In-Reply-To: <20051126091256.GA4647@trior.divbyzero.net> References: <00A2E2156BEE8446A81C8881AE117F192C1D08@companyweb> <1021295893.20051125211028@marcus-boerger.de> <20051126085039.GA1332@trior.divbyzero.net> <71.ED.56276.24328834@pb1.pair.com> <20051126091256.GA4647@trior.divbyzero.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: PHP 5.1 (Or How to break tousands of apps outthere) From: helly@php.net (Marcus Boerger) Hello Martin, the funny thing here is that obviously we cannot prefix things we have right now. Using namepsaces we would be free to enforce namespaces upon everyhting that's been built in and simply provide import. And if we really wanted to we could also have a "zend.ze1_compatibility_mode" like ini setting to import anything to the global space and voila - the php 6 code writers can go without and those who want to use php 5 stuff can easily do so. There won't be aproblem for namespaces users when imporint things to the global space. marcus Saturday, November 26, 2005, 10:12:56 AM, you wrote: > On Sat Nov 26, 2005 at 09:5522AM +0100, Ron Korving wrote: >> > Speaking of this, I like Greg's suggestion about prefixing all internal >> > classes with PHP_. While there are certainly classes out there that are >> > prefixed with it, we could tell developers that starting with e.g. PHP 6 >> > the PHP_* class scope is reserved for the language core and must not be >> > used for any other purpose. >> >> Why would you, if you have namespaces? > Correct me if I'm wrong, but I got the impression that despite Jessie's > patch and Marcus' competence in all things C people are still unsure if > namespaces will make it into PHP 6. Thus having an alternative strategy > at hand seems wise. > Best, > - Martin Best regards, Marcus