Merge lp:~zorba-coders/zorba/phpapi into lp:zorba
Proposed by
William Candillon
Status: | Merged |
---|---|
Approved by: | Chris Hillery |
Approved revision: | no longer in the source branch. |
Merged at revision: | 10622 |
Proposed branch: | lp:~zorba-coders/zorba/phpapi |
Merge into: | lp:zorba |
Diff against target: |
24 lines (+4/-1) 2 files modified
ChangeLog (+1/-1) doc/php/examples/CMakeLists.txt (+3/-0) |
To merge this branch: | bzr merge lp:~zorba-coders/zorba/phpapi |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Rodolfo Ochoa | Approve | ||
William Candillon | Approve | ||
Matthias Brantner | Pending | ||
Review via email: mp+89002@code.launchpad.net |
This proposal supersedes a proposal from 2012-01-17.
Commit message
This merge adds the PHP API that was introduced at the PHP Tour 2011.
Description of the change
This merge adds the PHP API that was introduced at the PHP Tour 2011.
It contains a test for it (php2).
From the last merge proposal, the following things have been done:
- Revert bogus change in swig/php/
- Introduce a STD Iterator for streaming results.
- Make the parseXML() method private.
- Improve importQueryFromURI
The two key tests are:
- php1
- php2
To post a comment you must log in.
- One thing that I don't understand is the relationship with the existing PHP binding. generate_ proxy.php. in should be reverted (renaming of libPrefix to prefix)
- The first three changes in swig/php/
- executeToURI is only capable of writing to files. Also, it currently doesn't stream.
- importQueryFromURI only works for file URIs.
- The parse functionality should probably be removed. It merges two functionalities which don't really belong together (retrieving of data and parsing xml). The latter can also be done in XQuery. If this philosophy is to push more functionality into XQuery, the parse functionality should be removed or made symmetric to the existing C++ and XQuery data manager APIs.
- getItem doesn't have a comment and is incomplete. Shouldn't it support more/all XQuery types?