Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46852 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87078 invoked from network); 21 Jan 2010 09:35:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2010 09:35:45 -0000 Authentication-Results: pb1.pair.com header.from=nrixham@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=nrixham@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 72.14.220.157 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: nrixham@gmail.com X-Host-Fingerprint: 72.14.220.157 fg-out-1718.google.com Received: from [72.14.220.157] ([72.14.220.157:19525] helo=fg-out-1718.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/C2-26239-EEF185B4 for ; Thu, 21 Jan 2010 04:35:43 -0500 Received: by fg-out-1718.google.com with SMTP id e12so1613703fga.11 for ; Thu, 21 Jan 2010 01:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=hzmiFcklwfMgRxdh4DFQ2vIIvFZ3Aq9V9AtGSW2jj0o=; b=VVeHWj3A/ju46LX7Df9zsakoGl4zwNENUACId4TOauUME0bRWONSw0vU75HBcGRIVI 7ctoc1qNxtbuiFLUh6JPS7zv9nvLPCQ5CLEIy4Whqf2iMlp9KznwdoFFCFyoFaweL/Zz GMmckym/NEWTRAk0kxQCN+dFVe+UVCcxdip1k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=DuY5dfe/lHTunddhxzlCI9lCPso1aDeCXAS7UKWlpVZeUcXLQ28YiBwSzCwDT0lc3A jbaTTYCOpn9R+Sb42f0QPbCbpUCI8plY0ysz/AvSd65FRd8rUnMhjO/F4ImNCBWQH9Yr 1CyhCc3iMRcKXUcnaCtoXzaY3T8tgrfD7F/7Y= Received: by 10.87.21.36 with SMTP id y36mr1943369fgi.17.1264066538676; Thu, 21 Jan 2010 01:35:38 -0800 (PST) Received: from ?192.168.1.65? (host86-167-174-129.range86-167.btcentralplus.com [86.167.174.129]) by mx.google.com with ESMTPS id 12sm2031814fgg.2.2010.01.21.01.35.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Jan 2010 01:35:37 -0800 (PST) Message-ID: <4B581FD5.6090300@gmail.com> Date: Thu, 21 Jan 2010 09:35:17 +0000 Reply-To: nrixham@gmail.com User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tim Starling CC: Stan Vassilev , internals@lists.php.net References: <4B57BC24.10605@wikimedia.org> In-Reply-To: <4B57BC24.10605@wikimedia.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Dots and spaces in variable names are converted to underscores. From: nrixham@gmail.com (Nathan Rixham) Tim Starling wrote: > Stan Vassilev wrote: >> I hope PHP6 will remove this processing as register_globals will be >> completely removed at that point. > > I'd be happy if it stayed like it is, for backwards compatibility. Sometimes forwards compatibility has to take precedence though. Linked data is set to explode around the net over the next year or two; general form fields will soon be replaced with properties from ontologies (such as foaf), people will have personal rdf graphs housed in their browsers and autocomplete will populate forms where the property uri's are known; if these form elements all contain uri's with dots swapped out with underscores then this could be a potentially big problem for the giant global graph and PHP developers specifically. All solved very easily by being able to ini switch this replacement feature on and off. on the server side.. http://example.org/ontology/0.1/some_property becomes http://example.org/ontology/0_1/some_property how do you reverse replace the correct underscore with a dot? if we use the workaround in userland this is no doubt breaking many future browser extensions looking for quite sure a small patch and ini switch would cater for both BC and FC in this case; even if it was removed all together then to achieve bc would be a simple for loop and str_replace; hardly major. regards!