Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUMP 0.9.5

  • Loading branch information...
commit eeebc127fb173fcc22e7fc3bd71726b8993ec944 1 parent 0e041c4
kristina authored
Showing with 43 additions and 8 deletions.
  1. +5 −2 bson.c
  2. +38 −6 package.xml
View
7 bson.c
@@ -126,8 +126,11 @@ static int apply_func_args_wrapper(void **data, int num_args, va_list args, zend
retval = serialize_element(name, (zval**)data, buf, prep TSRMLS_CC);
efree(name);
- // if this is a number, increase the count
- (*num)++;
+ // if the key is a number in ascending order, we're still
+ // dealing with an array, not an object, so increase the count
+ if (key->h == *num) {
+ (*num)++;
+ }
return retval;
}
View
44 package.xml
@@ -13,11 +13,11 @@
<email>kristina@10gen.com</email>
<active>yes</active>
</lead>
- <date>2009-07-10</date>
+ <date>2009-08-20</date>
<time>12:00:00</time>
<version>
- <release>0.9.3</release>
- <api>0.9.3</api>
+ <release>0.9.5</release>
+ <api>0.9.5</api>
</version>
<stability>
<release>beta</release>
@@ -25,9 +25,8 @@
</stability>
<license uri="http://www.apache.org/licenses/LICENSE-2.0">Apache License</license>
<notes>
- added slaveOkay(), tailable(), and logReplay() to MongoCursor
- empty array() defaults to array type, added MongoEmptyObj
- MongoId serialize/unserialize
+ Unbreak backwards compatibility
+ Arrays are saved as arrays only if they have ascending numeric indices, otherwise they're saved as objects
</notes>
<contents>
<dir baseinstalldir="/" name="/">
@@ -68,6 +67,39 @@
<api>beta</api>
</stability>
<version>
+ <release>0.9.5</release>
+ <api>0.9.5</api>
+ </version>
+ <date>2009-08-20</date>
+ <notes>
+ Unbreak backwards compatibility
+ Arrays are saved as arrays only if they have ascending numeric indices, otherwise they're saved as objects
+ </notes>
+ </release>
+ <release>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <version>
+ <release>0.9.4</release>
+ <api>0.9.4</api>
+ </version>
+ <date>2009-08-18</date>
+ <notes>
+ Objects can be stored/retrieved
+ MongoCursor - errors throws exceptions, added snapshot() and $slaveOkay
+ MongoCollection::listCollections() returns collections
+ Long decoding support
+ Bug fixes
+ </notes>
+ </release>
+ <release>
+ <stability>
+ <release>beta</release>
+ <api>beta</api>
+ </stability>
+ <version>
<release>0.9.3</release>
<api>0.9.3</api>
</version>
Please sign in to comment.
Something went wrong with that request. Please try again.