| 1 |
lars |
1 |
Public Releases of XML_Query2XML
|
|
|
2 |
================================
|
|
|
3 |
Version: $Id: RELEASES 309914 2011-04-03 11:16:28Z lukasfeiler $
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
v1.7.2
|
|
|
7 |
------
|
|
|
8 |
Release date: 2011-03-04
|
|
|
9 |
Release notes: This is a minor release:
|
|
|
10 |
- Bug #17724 fixed: avoiding split, using explode.
|
|
|
11 |
- XML_Query2XML::registerPrefix(): new method that allows you to register
|
|
|
12 |
your own prefixes that can be used in all value specifications.
|
|
|
13 |
unregisterPrefix() and unregisterAllPrefixes() allow you to unregister
|
|
|
14 |
a particular or all prefixes (including default prefixes).
|
|
|
15 |
- Now comes with 244 unit tests.
|
|
|
16 |
|
|
|
17 |
v1.7.1
|
|
|
18 |
------
|
|
|
19 |
Release date: 2009-03-08
|
|
|
20 |
Release notes: This release implements the following additions:
|
|
|
21 |
- Caching is now implemented as a saparate driver that is automatically
|
|
|
22 |
wrapped around any other driver if caching is activated.
|
|
|
23 |
This reduces the codebase of Query2XML.php.
|
|
|
24 |
- Refactoring of internal classes.
|
|
|
25 |
Note: No changes were introduced since 1.7.1RC1.
|
|
|
26 |
|
|
|
27 |
v1.7.1RC1
|
|
|
28 |
---------
|
|
|
29 |
Release date: 2009-03-01
|
|
|
30 |
Release notes: This release implements the following additions:
|
|
|
31 |
- Caching is now implemented as a saparate driver that is automatically
|
|
|
32 |
wrapped around any other driver if caching is activated.
|
|
|
33 |
This reduces the codebase of Query2XML.php.
|
|
|
34 |
- Refactoring of internal classes.
|
|
|
35 |
|
|
|
36 |
v1.7.0
|
|
|
37 |
------
|
|
|
38 |
Release date: 2008-05-02
|
|
|
39 |
Release notes: This feature release brings the following additions:
|
|
|
40 |
- new driver for PEAR Net_LDAP2: XML_Query2XML_Driver_LDAP2
|
|
|
41 |
- options 'limit' and 'offset' now supported by the MDB2 and DB drivers;
|
|
|
42 |
thanks to Johnny Cheng from openflyers.org for this feature request
|
|
|
43 |
- improved logging: now also logs the variables with which a prepared
|
|
|
44 |
statement is executed
|
|
|
45 |
- consolidation of unit tests for different database drivers; use
|
|
|
46 |
the environment variable PHP_PEAR_XML_QUERY2XML_TEST_DBLAYER to
|
|
|
47 |
set the database driver to be used (MDB2,DB,PDO,ADOdbDefault,
|
|
|
48 |
ADOdbPEAR or ADOdbException). Also use the environment variable
|
|
|
49 |
PHP_PEAR_XML_QUERY2XML_TEST_LDAPLAYER to set the LDAP driver
|
|
|
50 |
to be used (LDAP or LDAP2). Then simply run
|
|
|
51 |
'pear run-tests -p XML_Query2XML'
|
|
|
52 |
Note: no changes were introduced since 1.7.0RC1.
|
|
|
53 |
|
|
|
54 |
v1.7.0RC1
|
|
|
55 |
---------
|
|
|
56 |
Release date: 2008-04-18
|
|
|
57 |
Release notes: This feature release brings the following additions:
|
|
|
58 |
- new driver for PEAR Net_LDAP2: XML_Query2XML_Driver_LDAP2
|
|
|
59 |
- options 'limit' and 'offset' now supported by the MDB2 and DB drivers;
|
|
|
60 |
thanks to Johnny Cheng from openflyers.org for this feature request
|
|
|
61 |
- improved logging: now also logs the variables with which a prepared
|
|
|
62 |
statement is executed
|
|
|
63 |
- consolidation of unit tests for different database drivers; use
|
|
|
64 |
the environment variable PHP_PEAR_XML_QUERY2XML_TEST_DBLAYER to
|
|
|
65 |
set the database driver to be used (MDB2,DB,PDO,ADOdbDefault,
|
|
|
66 |
ADOdbPEAR or ADOdbException). Also use the environment variable
|
|
|
67 |
PHP_PEAR_XML_QUERY2XML_TEST_LDAPLAYER to set the LDAP driver
|
|
|
68 |
to be used (LDAP or LDAP2). Then simply run
|
|
|
69 |
'pear run-tests -p XML_Query2XML'
|
|
|
70 |
|
|
|
71 |
v1.6.0
|
|
|
72 |
------
|
|
|
73 |
Release date: 2008-01-06
|
|
|
74 |
Release notes: This stable release implements the following new features:
|
|
|
75 |
- LDAP support: the new LDAP driver uses PEAR Net_LDAP
|
|
|
76 |
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#ldap
|
|
|
77 |
- new open driver architecture allows you to implement your own drivers
|
|
|
78 |
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#yourdriver
|
|
|
79 |
- $options['sql']['driver'] now allows you to use different drivers for each query
|
|
|
80 |
- fixed documentation bug #12568
|
|
|
81 |
- PEAR Coding Standard fixes
|
|
|
82 |
- correction of copyright notice
|
|
|
83 |
- XML_Query2XML now comes with 1159 phpt unit tests
|
|
|
84 |
Note: No changes were introduced since 1.6.0RC1.
|
|
|
85 |
|
|
|
86 |
v1.6.0RC1
|
|
|
87 |
---------
|
|
|
88 |
Release date: 2008-01-02
|
|
|
89 |
Release notes: This release candidate contains the following new features:
|
|
|
90 |
- LDAP support: the new LDAP driver uses PEAR Net_LDAP
|
|
|
91 |
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#ldap
|
|
|
92 |
- new open driver architecture allows you to implement your own drivers
|
|
|
93 |
see http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#yourdriver
|
|
|
94 |
- $options['sql']['driver'] now allows you to use different drivers for each query
|
|
|
95 |
- fixed documentation bug #12568
|
|
|
96 |
- PEAR Coding Standard fixes
|
|
|
97 |
- correction of copyright notice
|
|
|
98 |
- XML_Query2XML now comes with 1159 phpt unit tests
|
|
|
99 |
|
|
|
100 |
v1.5.0
|
|
|
101 |
---------
|
|
|
102 |
Release date: 2007-10-07
|
|
|
103 |
Release notes: This seventh stable release comes after extensive re-factoring:
|
|
|
104 |
- XML_Query2XML now does a lot of internal pre-processing
|
|
|
105 |
- this improves performance by at least 30%
|
|
|
106 |
- all exceptions now contain information that relates to the
|
|
|
107 |
configuration option that caused the exception to be thrown
|
|
|
108 |
- caching is now deactivated by default as is not needed in
|
|
|
109 |
most cases; see $options['sql_options']['cached']
|
|
|
110 |
- XML_Query2XML now comes with 1144 phpt unit tests
|
|
|
111 |
Note: No changes were introduced since 1.5.0RC1.
|
|
|
112 |
|
|
|
113 |
v1.5.0RC1
|
|
|
114 |
---------
|
|
|
115 |
Release date: 2007-09-30
|
|
|
116 |
Release notes: This release candidate comes after extensive re-factoring:
|
|
|
117 |
- XML_Query2XML now does a lot of internal pre-processing
|
|
|
118 |
- this improves performance by at least 30%
|
|
|
119 |
- all exceptions now contain information that relates to the
|
|
|
120 |
configuration option that caused the exception to be thrown
|
|
|
121 |
- caching is now deactivated by default as is not needed in
|
|
|
122 |
most cases; see $options['sql_options']['cached']
|
|
|
123 |
- XML_Query2XML now comes with 1144 phpt unit tests
|
|
|
124 |
Note: if 1.5.0RC1 does not cause any problems for early adopters
|
|
|
125 |
(which I consider very unlikely) 1.5.0 will be released next weekend.
|
|
|
126 |
|
|
|
127 |
v1.4.0
|
|
|
128 |
------
|
|
|
129 |
Release date: 2007-09-03
|
|
|
130 |
Release notes: This sixth stable release contains a couple of new features:
|
|
|
131 |
- PDO support - this also adds support for SQLite 3 (thanks to
|
|
|
132 |
John P. McCaskey for pointing out the lack of SQLite 3 support)
|
|
|
133 |
- all unit tests now run with SQLite 2 by default; unit tests
|
|
|
134 |
for PDO and PEAR MDB2 will therefore work out of the box
|
|
|
135 |
- XML_Query2XML now comes with 1084 phpt unit tests
|
|
|
136 |
|
|
|
137 |
v1.3.0
|
|
|
138 |
------
|
|
|
139 |
Release date: 2007-08-26
|
|
|
140 |
Release notes: This fith stable release contains a couple of new features:
|
|
|
141 |
- enhanced support for CDATA sections
|
|
|
142 |
(see the CDATA SECTION prefix)
|
|
|
143 |
- enhanced support for binary data via base64 encoding
|
|
|
144 |
(see the BASE64 ENCODING prefix; thanks to Thomas Haslbeck
|
|
|
145 |
for making me implement this feature)
|
|
|
146 |
- support for dynamic XML element names determined at run time
|
|
|
147 |
(see the dynamicRowTag option; thanks to John P. McCaskey for
|
|
|
148 |
requesting this feature)
|
|
|
149 |
- XML_Query2XML now comes with 913 phpt unit tests
|
|
|
150 |
|
|
|
151 |
v1.2.1
|
|
|
152 |
------
|
|
|
153 |
Release date: 2007-05-26
|
|
|
154 |
Release notes: This fourth stable release contains only some small enhancements:
|
|
|
155 |
- dumping the data of all the tables in your database is now easier;
|
|
|
156 |
there is also a new section in the tutorial that describes how to do this:
|
|
|
157 |
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#dumpdatabase
|
|
|
158 |
Thanks to vikram dot melonfire at gmail dot com for raising the issue of database dumps
|
|
|
159 |
- $sql and $options['idColumn'] now also accept a value of false
|
|
|
160 |
- XML_Query2XML now comes with 803 phpt unit tests
|
|
|
161 |
|
|
|
162 |
v1.2.0
|
|
|
163 |
------
|
|
|
164 |
Release date: 2007-04-15
|
|
|
165 |
Release notes: This third stable release contains a new feature and some minor
|
|
|
166 |
coding-style related changes.
|
|
|
167 |
- it is now possible to handle data sources that use another character encoding
|
|
|
168 |
than ISO-8859-1; see the 'encoder' option:
|
|
|
169 |
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#query2xml_getxml.options_encoder
|
|
|
170 |
Thanks to Mickael Guerin for making me implement this feature that has been sitting on my
|
|
|
171 |
todo list for quite some time now.
|
|
|
172 |
- other character encodings than UTF-8 can now also be used for XML encoding; see
|
|
|
173 |
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#encoding
|
|
|
174 |
- unit tests are now correctly skipped if the database connection fails
|
|
|
175 |
- XML_Query2XML now comes with 783 phpt unit tests
|
|
|
176 |
|
|
|
177 |
v1.1.0
|
|
|
178 |
------
|
|
|
179 |
Release date: 2007-02-03
|
|
|
180 |
Release notes: This second stable release contains a couple of great new features:
|
|
|
181 |
- it's now possible to integrate other XML data sources (e.g. XML stored in the DB)
|
|
|
182 |
- XML unserialization support: see the ampersand prefix
|
|
|
183 |
- you can now return DOMNode instances from callback functions
|
|
|
184 |
- non-static methods can now be used as callbacks by
|
|
|
185 |
implementing the new XML_Query2XML_Callback interface
|
|
|
186 |
|
|
|
187 |
The smaller changes include:
|
|
|
188 |
- cleaned up API docs
|
|
|
189 |
- hidden_container_prefix can now be set using setGlobalOption()
|
|
|
190 |
- numerous CS fixes in the tutorial
|
|
|
191 |
- now using MDB2 instead of DB in all examples
|
|
|
192 |
- documented multi-column primary key support
|
|
|
193 |
- now comes with 678 unit tests (tested with MySQL and PostgreSQL)
|
|
|
194 |
|
|
|
195 |
v1.0.0
|
|
|
196 |
------
|
|
|
197 |
Release date: 2006-12-04
|
|
|
198 |
Release notes: I am very proud to announce the first stable
|
|
|
199 |
release of XML_Query2XML.
|
|
|
200 |
|
|
|
201 |
This release introduces only one minor change. It's not
|
|
|
202 |
a bug fix but just a matter of clean code. The patch
|
|
|
203 |
was anonymously submitted via the project's sourceforge site
|
|
|
204 |
(Note: pear.php.net should be used instead).
|
|
|
205 |
|
|
|
206 |
If you are upgrading from v0.6.x or v0.7.x, please read
|
|
|
207 |
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#migration
|
|
|
208 |
|
|
|
209 |
v0.8.0
|
|
|
210 |
------
|
|
|
211 |
Release date: 2006-11-04
|
|
|
212 |
Release notes: This release is *NOT BACKWARD COMPATIBLE*.
|
|
|
213 |
I'm sorry for the BC break, but due to security considerations XML_Query2XML
|
|
|
214 |
does not use the native function eval() anymore. Therefore
|
|
|
215 |
- the "!" prefix is not supported anymore
|
|
|
216 |
- the behaviour of the "condition" option was changed
|
|
|
217 |
- the new callback prefix "#" was added (use it instead of the "!" prefix)
|
|
|
218 |
|
|
|
219 |
A migration strategy is documented at
|
|
|
220 |
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.html#migration
|
|
|
221 |
|
|
|
222 |
Also:
|
|
|
223 |
- unit tests were migrated from PHPUnit2 to phpt
|
|
|
224 |
- XML_Query2XML now comes with 433 unit tests
|
|
|
225 |
- migrated from package.xml version 1.0 to version 2.0
|
|
|
226 |
|
|
|
227 |
v0.7.0
|
|
|
228 |
------
|
|
|
229 |
Release date: 2006-10-14
|
|
|
230 |
Release notes:
|
|
|
231 |
This release adds support for ADOdb (adodb.sf.net).
|
|
|
232 |
ADOdb can be used with different error handling mechanisms:
|
|
|
233 |
- default: methods return false on failure; these errors
|
|
|
234 |
will be caught by XML_Query2XML and an XML_Query2XML_DBException
|
|
|
235 |
will be thrown
|
|
|
236 |
- PEAR_Error: methods return PEAR_Error on failure (or false
|
|
|
237 |
and require ADODB_Pear_Error() to be called);
|
|
|
238 |
XML_Query2XML will catch these errors and throw an
|
|
|
239 |
XML_Query2XML_DBException that contains the information provided
|
|
|
240 |
by the PEAR_Error instance.
|
|
|
241 |
- exceptions: if an ADODB_Exception is thrown by ADOdb
|
|
|
242 |
XML_Query2XML will catch it and throw an XML_Query2XML_DBException
|
|
|
243 |
|
|
|
244 |
This means that no matter which error handling mechanism is used within
|
|
|
245 |
ADOdb, XML_Query2XML will behave the same. It will throw an
|
|
|
246 |
XML_Query2XML_DBException in case of a database error.
|
|
|
247 |
|
|
|
248 |
v0.6.1
|
|
|
249 |
------
|
|
|
250 |
Release date: 2006-09-28
|
|
|
251 |
Release notes:
|
|
|
252 |
This release fixes a minor bug with PHP5 prior to 5.1.0.
|
|
|
253 |
Thanks a lot to Christophe Laratte <christophe dot laratte at openflyers dot org>;
|
|
|
254 |
for reporting this!
|
|
|
255 |
|
|
|
256 |
Bug fixes:
|
|
|
257 |
- Fixed Bug #8799 "DB/common.php required": compatibility fix for
|
|
|
258 |
PHP5 < 5.1.0: added class_exists() calls before using instanceof
|
|
|
259 |
operator in XML_Query2XML constructor;
|
|
|
260 |
see also: http://bugs.php.net/bug.php?id=29736
|
|
|
261 |
|
|
|
262 |
v0.6.0
|
|
|
263 |
------
|
|
|
264 |
Release date: 2006-04-23
|
|
|
265 |
Release notes:
|
|
|
266 |
This release includes all changes recommeded during the PEPr voting process.
|
|
|
267 |
Major changes:
|
|
|
268 |
- asterisk shortcut that expands to all columns in the result set;
|
|
|
269 |
the tutorial was updated to document this feature and a new
|
|
|
270 |
case study (case 07) was added to provide a good example
|
|
|
271 |
- implementation of ISO/IEC 9075-14:2005 for mapping SQL identifiers to
|
|
|
272 |
XML names; the tutorial was updates to document this feature and
|
|
|
273 |
a new case study (case 08) was added to provide lots of examples
|
|
|
274 |
- new complex attribute specifications (from my own wish list)
|
|
|
275 |
|
|
|
276 |
Minor changes:
|
|
|
277 |
- simplification of the inner workings of the methods _hasDOMChild()
|
|
|
278 |
and _getDOMChild()
|
|
|
279 |
- using foreach($array as $key => $value) instead of
|
|
|
280 |
while(list($key, $value) = each($array))
|
|
|
281 |
- now comes with 168 unit tests
|
|
|
282 |
|
|
|
283 |
v0.5.1
|
|
|
284 |
------
|
|
|
285 |
Release date: 2006-03-17
|
|
|
286 |
Release notes:
|
|
|
287 |
This release includes a couple of minor changes:
|
|
|
288 |
- all lines now have a maximum length of 85 characters
|
|
|
289 |
- no () with require_once
|
|
|
290 |
- always using {} with code blocks
|
|
|
291 |
- no silencing of any calls using @
|
|
|
292 |
- using /* ... */ for all multi-line comments
|
|
|
293 |
- enhanced documentation for private methods
|
|
|
294 |
- code enhancements inside XML_Query2XML::getXML()
|
|
|
295 |
|
|
|
296 |
v0.5.0
|
|
|
297 |
------
|
|
|
298 |
Release date: 2006-03-14
|
|
|
299 |
Release notes:
|
|
|
300 |
This release includes a couple of major changes:
|
|
|
301 |
- full MDB2 support
|
|
|
302 |
- all new exception handling: just three different
|
|
|
303 |
exceptions that all extend XML_Query2XML_Exception.
|
|
|
304 |
- now comes with 99 PHPUnit2 unit tests
|
|
|
305 |
- every exception that is thrown or bubbles up is
|
|
|
306 |
documented in the API-docs; the tutorial has a
|
|
|
307 |
new "Exception Handling" section.
|
|
|
308 |
This release implements all recommendations made by
|
|
|
309 |
PEAR developers during a first proposal.
|
|
|
310 |
|
|
|
311 |
Minor changes include:
|
|
|
312 |
- using ' instead of " where-ever possible
|
|
|
313 |
- as PHP5 uses references for objects by default & (such as
|
|
|
314 |
in =&) is now only used where necessary.
|
|
|
315 |
- the tutorial now renders just fine in all common browsers
|
|
|
316 |
|
|
|
317 |
v0.4.0
|
|
|
318 |
------
|
|
|
319 |
Release date: 2006-02-28
|
|
|
320 |
Release notes:
|
|
|
321 |
This release includes one major change:
|
|
|
322 |
- Public methods will now only throw exceptions that extend PEAR_Exception.
|
|
|
323 |
No PEAR errors or special XML will be returned anymore.
|
|
|
324 |
Therefore the public method XML_Query2XML::factory() now
|
|
|
325 |
only knows one argument.
|
|
|
326 |
|
|
|
327 |
v0.3.0
|
|
|
328 |
------
|
|
|
329 |
Release date: 2006-02-25
|
|
|
330 |
Release notes:
|
|
|
331 |
This release includes two major changes:
|
|
|
332 |
- XML_Query2XML now uses PHP5's DOM XML extension. Therefore
|
|
|
333 |
DomDocument, DomNode, etc are now used in favor of XML_Query2XML_XMLElement.
|
|
|
334 |
XML_Query2XML does not come with XML_Query2XML_XMLElement anymore!
|
|
|
335 |
- Back to the roots! XML_Query2XML concentrates on its core features and
|
|
|
336 |
therefore drops the functionality of generating an XML schema from XML data.
|
|
|
337 |
|
|
|
338 |
Minor changes:
|
|
|
339 |
- reduction of unit tests (fewer public methods to test): 20
|
|
|
340 |
- complete review of the tutorial and the API documentation
|
|
|
341 |
- changes of testCases.sh: schema validation is not supported
|
|
|
342 |
anymore
|
|
|
343 |
|
|
|
344 |
|
|
|
345 |
v0.2.0
|
|
|
346 |
------
|
|
|
347 |
Release date: 2006-02-08
|
|
|
348 |
Release notes:
|
|
|
349 |
The first public release v0.2.0 is available!
|
|
|
350 |
Just download the package and run `pear install <package_file>'.
|
|
|
351 |
Alternatively you can also directly run
|
|
|
352 |
`pear install http://query2xml.sourceforge.net/releases/XML_Query2XML-0.2.0.tgz'.
|
|
|
353 |
|
|
|
354 |
This release includes
|
|
|
355 |
- in-depth documentation: tutorials and API documentation
|
|
|
356 |
- 6 case studies: from very simple to highly complex scenarios
|
|
|
357 |
- 104 unit tests for PHPUnit
|
|
|
358 |
- minor bug fixes
|
|
|
359 |
- development was moved to sourceforge's CVS server
|