Re: CRITICALLY IMPORTANT: fix your package.xml or PEAR will not be able to install it

From: Date: Sat, 26 Feb 2005 21:27:20 +0000
Subject: Re: CRITICALLY IMPORTANT: fix your package.xml or PEAR will not be able to install it
References: 1 2 3 4 5 6  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-2552@lists.php.net to get a copy of this message
Helgi Þormar wrote:
On Sat, 2005-02-26 at 18:11, Daniel Convissor wrote:
Hi QA, and most importantly, Greg: In an effort to head off the impending problems of non ISO-8859-1 characters in package.xml files when upgrading to 1.4.0 I downloaded the entire PEAR source tree and ran the following grep on it: grep -rE '[^ -~[:space:]]' pear > pear.txt
Recommend you beef up that regex and include <name></name> around so it won't grep package.xml files like from benchmark, which I'm mentioned in the changelog, afaik that won't hurt PEAR 1.4.0 ? Just the developers names right ?
No, the problem is that the saxon parser in PHP 5.1 converts all non-ISO characters into a simple "?" character. PEAR does a == check between the package.xml returned from xmlrpc and from the downloaded package, as this is the simplest way to make sure that nobody is up to no good. Otherwise it would be possible to claim that you will provide one package and then surreptitiously provide another one on download. So, Dan's regex is good. Sorry I haven't been around much today, I'm still completely zonked. Greg

« previous php.pear.qa (#2552) next »