Skip to content

Commit 25a6cfc

Browse files
committed
Merge pull request #68
2 parents 07387fa + 4aec536 commit 25a6cfc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.travis.scripts/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ wget -O run-tests.php https://raw.githubusercontent.com/php/php-src/master/run-t
3030

3131
rm -rf tmp-lcov tmp # coveralls may pick it up and lie about our coverage
3232

33-
echo "extension=phongo.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
33+
echo "extension=mongodb.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
3434

3535
MONGO=`which mongo`
3636
mongod --version

src/bson.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,9 @@ int bson_to_zval(const unsigned char *data, int data_len, php_phongo_bson_state
893893
bool eof = false;
894894
TSRMLS_FETCH();
895895

896+
/* Ensure that state->zchild has a type, since the calling code may want to
897+
* zval_ptr_dtor() it if we throw an exception. */
898+
ZVAL_NULL(state->zchild);
896899

897900
reader = bson_reader_new_from_data(data, data_len);
898901

0 commit comments

Comments
 (0)