Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 26, 2013
  1. @derickr

    BUMP 1.3.6

    derickr authored
  2. @derickr
  3. @bjori @derickr

    Fixed PHP-535: Run commands on Replication Secondaries

    bjori authored derickr committed
Commits on Mar 15, 2013
  1. @derickr

    BUMP 1.3.5

    derickr authored
  2. @derickr
  3. @derickr
  4. @bjori @derickr

    Fixed PHP-665: Add support for Auth Specification

    bjori authored derickr committed
    Implemented support for surrogate users, defined in a seperate database
    then currently using.
    
    Also fixed a memory leak when switching between databases with
    credentials.
    
    Added support for the authSource connection string option, as well as
    future compatability support for authMechanism.
Commits on Jan 31, 2013
  1. @derickr

    BUMP 1.3.4

    derickr authored
  2. @derickr

    Fixed Windows build.

    derickr authored
  3. @derickr

    Merged pull request #305

    derickr authored
  4. @bjori @derickr

    Fixed PHP-691: Memory leak during master failover

    bjori authored derickr committed
    MongoCollection->update() & remove() do not have this problem
  5. @bjori

    Merge pull request #304

    bjori authored
    * pull-request/304:
      Fixes PHP-680: Always free tagset in dtor function
  6. @jmikola @bjori

    Fixes PHP-680: Always free tagset in dtor function

    jmikola authored bjori committed
    Previously, tagset would not be freed if it contained no tags. Since it is always allocated, we should free it regardless of whether tags were added to it.
  7. @bjori

    Merged pull request #303

    bjori authored
    * pull-request/303:
      Fixed PHP-690: Percentage symbol is not escaped in error messages
  8. @derickr @bjori

    Fixed PHP-690: Percentage symbol is not escaped in error messages

    derickr authored bjori committed
    We need to use "%s", error_message when passing to the varargs function
    mongo_cursor_throw. The explanation for why this is important is well described
    at http://en.wikipedia.org/wiki/Uncontrolled_format_string
Commits on Jan 30, 2013
  1. @derickr

    Merged pull request #301

    derickr authored
  2. @bjori @derickr

    Make sure we print something out when this test fails

    bjori authored derickr committed
    Also update the errormessage which seems to be have improved in certain
    cenarios in 2.3.x
    
    The first and the last connection hashes were actually identical and
    therefore pretty meaningless, so made sure all 3 are unique
  3. @bjori @derickr

    We support timeouts now, use it

    bjori authored derickr committed
  4. @derickr

    Merged pull request #300

    derickr authored
  5. @bjori @derickr

    Fixed PHP-688: Default connect() timeout is 1000 _seconds_, not

    bjori authored derickr committed
    milliseconds
    
    uhh, no. The default was never 1000 seconds
    
    The caller used to send 1000 *ms* as the default, not seconds.
    Since the caller was hardcoded this check never kicked in until now
  6. @derickr

    Merged pull request #296

    derickr authored
  7. @derickr

    Changed signature of mongo_io_recv_data() to be the same as mongo_io_…

    derickr authored
    …recv_header().
    
    Keeping our APIs consistent since 2012 :-)
  8. @bjori @derickr

    Fixed PHP-355: Driver does not honour connection 'timeout'

    bjori authored derickr committed
    Previous fix to PHP-356 fixed the timeout for creating the actual
    connection, while this fix deals with timeout for the ping/pong game we
    need to play with mongod when bootstrapping the connection.
    
    Note: These are two (three) different options!
    connectTimeoutMS is exclusively used for connecting to the server
    socketTimeoutMS  is used for data transmissions
    and the 3rd one
    wTimeoutMS       is _server side_ replication timeout
    
    The socketTimeoutMS can be adjusted per-query, while connectTimeoutMS
    can only be set in the ctor.
    The connectTimeoutMS is is also used when attempting to reestablish
    connection to the server after f.e. query timeout (socketTimeoutMS).
    
    To make things consistent we should probably consider allowing
    "socketTimeoutMS" as a query options, today it is simply called
    "timeout" which is a littlebit ambiguous
  9. @derickr

    Merged pull request #298

    derickr authored
  10. @jmikola @derickr

    Revise db/collection access PHP-667 test

    jmikola authored derickr committed
Commits on Jan 29, 2013
  1. @bjori

    Merge branch 'pull-request/299'

    bjori authored
    * pull-request/299:
      Fix PHP-687: Avoid premature casting during MongoDate arithmetic
  2. @jmikola
Commits on Jan 28, 2013
  1. @bjori

    Merge branch 'pull-request/282'

    bjori authored
    * pull-request/282:
      Replace ambiguous variable names in read preference tests
      Fixed PHP-680: Don't free null pointers in read preference dtors
      Fixed PHP-679 PHP-681: Make setReadPreference() consistent
      Fixed PHP-668: Allow empty setReadPreference() tags param for primary mode
      Refactor existing get/setReadPreference() tests
      Fix whitespace CS in get/setReadPreference() tests
  2. @jmikola @bjori

    Replace ambiguous variable names in read preference tests

    jmikola authored bjori committed
  3. @jmikola @bjori
  4. @jmikola @bjori

    Fixed PHP-679 PHP-681: Make setReadPreference() consistent

    jmikola authored bjori committed
    If not tags are provided, the read preference tagsets should be cleared out. If an error is encountered (either bad mode or invalid tagsets), the read preference should not be modified at all.
  5. @jmikola @bjori

    Fixed PHP-668: Allow empty setReadPreference() tags param for primary…

    jmikola authored bjori committed
    … mode
    
    See doctrine/mongodb#92 for why this was helpful.
  6. @jmikola @bjori

    Refactor existing get/setReadPreference() tests

    jmikola authored bjori committed
    Made tests consistent across classes, and added getReadPreference() inheritance tests where appropriate. All classes use the same C implementation for setReadPreference(), so perhaps there's a more elegant way to ensure we test the same functionality against each class.
  7. @jmikola @bjori

    Fix whitespace CS in get/setReadPreference() tests

    jmikola authored bjori committed
  8. @bjori

    Merge branch 'pull-request/284'

    bjori authored
    * pull-request/284:
      Fixed PHP-650: Segmentation fault when using findAndModify().
Something went wrong with that request. Please try again.