Re: Version 3.0 now available!
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-05-13 18:15:38
|
> From: "Nigel Swinson" <nig...@us...> > > Let me know if that other getData() fix doesn't solve your problem. Send > > some examples and stuff and I'll try to locate the bug you are getting. > > Think it's likely that it is your bug though. > > > > Might be it's my bug, but the 2.2 version works good. Well I attach the > forum. It's tested on Win 98 PWS with the results described below. > What you should do is run the index.php. Now click on "current threads" of > the top most category. > The result is many threads, and I echo the XPath: > XPath: "posts/post[@replyTo = '0']" result-count: 7 > > This was version 2.2. > Now go rename "XPath.class.php" to "old_XPath.class.php" and rename > "new_XPath.class.php" to "XPath.class.php" (which is from the latest release > you mentioned in the list). Suddenly no more posts are shown, as the result > on "current threads" is: > XPath: "posts/post[@replyTo = '0']" result-count: 0 > > (Please note that there's a single function "getAttribute" that I added to > both the old and new class. It's not accessed in this part of the problem, > but you can find it searching for "Phil".) Ok I just loaded your forum, and you aren't using the latest version from CVS. I did a diff between your version of Php.XPath and the latest and there were several bug fixes that were in mine but not in yours, but add to that you had your getAttribute function. When I made it use the latest version by adding your getAttribute function it all worked fine :o) So if you visit http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phpxpath/ and navigate your way to the development version, you can get the fix without waiting for 3.1 Cheers, Nigel |