Re: Structures_DataGrid Data Sources
| From: | Olivier Guilyardi | Date: | Fri, 20 Aug 2004 15:00:20 +0000 |
| Subject: | Re: Structures_DataGrid Data Sources | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-32785@lists.php.net to get a copy of this message | ||
Joshua Eichorn wrote:
Olivier Guilyardi wrote:I see... Actually, this is no major bug, because the xml driver works when not passed any xpath option. But the xpath support makes it much more flexible. Maybe that I'll hack some support for a little subset of xpath, when detecting php5. This could even be a new option, like xpath_light, much lighter, to do simple things like "/path/to/root". -- ogAs far as i can tell, XML_Xpath is completly broken in php5, and its not from $this reasignment, it uses domxml, which is now replaced by dom, and have different apis. So if you want php5 support of it, its going to take quite a bit of work. I have a hacked up wrapper im using in my conversion, but I think the best long term solution is to rethink XML_Xpath and make a version that fits better into the php5 dom model. -joshTests and documentation : http://xung.org/misc/dgdo/sdg_source/test/index.html All of this new layer is tested and works with php4 and php5, as you can see by pointing your browser to the link I provide above. (except the RSS driver, not tested yet).Oops, sorry, there are problems on php5 with both the dataobject and xml (when using XML_Xpath) drivers : Fatal error: Method DB_DataObject_Overload::__call() must take exactly 2 arguments in <b>/usr/share/php/DB/DataObject.php on line 191 Fatal error: Cannot re-assign $this in <b>/usr/share/php/XML/XPath.php on line 101 -- og