Re: entities in package.xml must be the Ӓ type or the saxon parser craps out
| From: | Greg Beaver | Date: | Tue, 01 Mar 2005 17:46:14 +0000 |
| Subject: | Re: entities in package.xml must be the Ӓ type or the saxon parser craps out | ||
| References: | 1 2 3 4 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-2578@lists.php.net to get a copy of this message | ||
Klaus Guenther wrote:
On 3/1/2005 6:13 PM, Justin Patrin spake the following words:I spent about 3 months working on a simplexml-based solution to package.xml parsing, and the short answer is that it is completely impossible without breaking BC in a major way (read: php 4 PEAR can't read php 5 registry, and vice-versa). GregOn Tue, 01 Mar 2005 17:53:53 +0100, Klaus Guenther <klaus@capitalfocus.org> wrote:Yeah, which is why I'd suggest starting to switch over to php5, which might make it easier in the future, when php5 is available. Which is why I was suggesting implementing it dually - for php5 and php4, using sax for php4 and maybe SimpleXML for php5. If it makes things easier than cripling the installer by forcing an implementation that works in both php4 and php5, I'm all for it. Maybe it would even be best to create two versions of the installer - php4 and php5, and depending on what is installed, it installs the appropriate version. Of course, the disadvantage would be if someone upgrades to php5 and all of a sudden, the PEAR installer doesn't work anymore. Maybe there could be an autoupgrade function for PEAR, simply copying the appropriate scripts. It might be more work now to make a dual implementation, but it might be very helpful next year. It might even be easier for Greg than breaking his head over compatibility problems. Anyway, that's just my two cents.On 3/1/2005 5:47 PM, Greg Beaver spake the following words:This is PEAR we're talking about. Many people don't have SimpleXML and PHP5.Note the most recent problem with I18n_v2 Greg P.S. did I mention that I ****ing hate working with saxon across different PHP versions?Can you switch to SimpleXML in php5 or do you need more indepth xml support?