Skip to content

Commit e156b23

Browse files
committed
Merge pull request #127
2 parents c367819 + 15a9f70 commit e156b23

File tree

5 files changed

+1
-86
lines changed

5 files changed

+1
-86
lines changed

config.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ if test "$MONGODB" != "no"; then
178178
src/MongoDB/Exception/ConnectionException.c \
179179
src/MongoDB/Exception/AuthenticationException.c \
180180
src/MongoDB/Exception/SSLConnectionException.c \
181-
src/MongoDB/Exception/DuplicateKeyException.c \
182181
src/MongoDB/Exception/ExecutionTimeoutException.c \
183182
src/MongoDB/Exception/ConnectionTimeoutException.c \
184183
src/MongoDB/Exception/WriteException.c \

config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (PHP_MONGODB != "no") {
1010
ADD_SOURCES(configure_module_dirname + "/src", "bson.c", "mongodb");
1111
ADD_SOURCES(configure_module_dirname + "/src/BSON", "Type.c Unserializable.c Serializable.c Persistable.c Binary.c Javascript.c MaxKey.c MinKey.c ObjectID.c Regex.c Timestamp.c UTCDateTime.c", "mongodb");
1212
ADD_SOURCES(configure_module_dirname + "/src/MongoDB", "Command.c Cursor.c CursorId.c Manager.c Query.c ReadPreference.c Server.c BulkWrite.c WriteConcern.c WriteConcernError.c WriteError.c WriteResult.c", "mongodb");
13-
ADD_SOURCES(configure_module_dirname + "/src/MongoDB/Exception", "Exception.c LogicException.c RuntimeException.c UnexpectedValueException.c InvalidArgumentException.c ConnectionException.c AuthenticationException.c SSLConnectionException.c DuplicateKeyException.c ExecutionTimeoutException.c ConnectionTimeoutException.c WriteException.c WriteConcernException.c BulkWriteException.c", "mongodb");
13+
ADD_SOURCES(configure_module_dirname + "/src/MongoDB/Exception", "Exception.c LogicException.c RuntimeException.c UnexpectedValueException.c InvalidArgumentException.c ConnectionException.c AuthenticationException.c SSLConnectionException.c ExecutionTimeoutException.c ConnectionTimeoutException.c WriteException.c WriteConcernException.c BulkWriteException.c", "mongodb");
1414
ADD_SOURCES(configure_module_dirname + "/src/contrib/", "php-ssl.c", "mongodb");
1515
ADD_SOURCES(configure_module_dirname + "/src/libbson/src/yajl", "yajl_version.c yajl.c yajl_encode.c yajl_lex.c yajl_parser.c yajl_buf.c yajl_tree.c yajl_alloc.c yajl_gen.c", "mongodb");
1616
ADD_SOURCES(configure_module_dirname + "/src/libbson/src/bson", "bcon.c bson.c bson-atomic.c bson-clock.c bson-context.c bson-error.c bson-iter.c bson-iso8601.c bson-json.c bson-keys.c bson-md5.c bson-memory.c bson-oid.c bson-reader.c bson-string.c bson-timegm.c bson-utf8.c bson-value.c bson-version-functions.c bson-writer.c", "mongodb");

php_phongo.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ zend_class_entry* phongo_exception_from_mongoc_domain(uint32_t /* mongoc_error_d
118118
return php_phongo_executiontimeoutexception_ce;
119119
case MONGOC_ERROR_STREAM_SOCKET:
120120
return php_phongo_connectiontimeoutexception_ce;
121-
case 11000: /* DuplicateKey */
122-
return php_phongo_duplicatekeyexception_ce;
123121
case MONGOC_ERROR_CLIENT_AUTHENTICATE:
124122
return php_phongo_authenticationexception_ce;
125123

@@ -2375,7 +2373,6 @@ PHP_MINIT_FUNCTION(mongodb)
23752373
PHP_MINIT(WriteException)(INIT_FUNC_ARGS_PASSTHRU);
23762374
PHP_MINIT(WriteConcernException)(INIT_FUNC_ARGS_PASSTHRU);
23772375
PHP_MINIT(BulkWriteException)(INIT_FUNC_ARGS_PASSTHRU);
2378-
PHP_MINIT(DuplicateKeyException)(INIT_FUNC_ARGS_PASSTHRU);
23792376
PHP_MINIT(ExecutionTimeoutException)(INIT_FUNC_ARGS_PASSTHRU);
23802377
PHP_MINIT(ConnectionTimeoutException)(INIT_FUNC_ARGS_PASSTHRU);
23812378

php_phongo_classes.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ extern PHONGO_API zend_class_entry *php_phongo_invalidargumentexception_ce;
183183
extern PHONGO_API zend_class_entry *php_phongo_connectionexception_ce;
184184
extern PHONGO_API zend_class_entry *php_phongo_authenticationexception_ce;
185185
extern PHONGO_API zend_class_entry *php_phongo_sslconnectionexception_ce;
186-
extern PHONGO_API zend_class_entry *php_phongo_duplicatekeyexception_ce;
187186
extern PHONGO_API zend_class_entry *php_phongo_executiontimeoutexception_ce;
188187
extern PHONGO_API zend_class_entry *php_phongo_connectiontimeoutexception_ce;
189188
extern PHONGO_API zend_class_entry *php_phongo_writeexception_ce;
@@ -233,7 +232,6 @@ PHP_MINIT_FUNCTION(InvalidArgumentException);
233232
PHP_MINIT_FUNCTION(ConnectionException);
234233
PHP_MINIT_FUNCTION(AuthenticationException);
235234
PHP_MINIT_FUNCTION(SSLConnectionException);
236-
PHP_MINIT_FUNCTION(DuplicateKeyException);
237235
PHP_MINIT_FUNCTION(ExecutionTimeoutException);
238236
PHP_MINIT_FUNCTION(ConnectionTimeoutException);
239237
PHP_MINIT_FUNCTION(WriteException);

src/MongoDB/Exception/DuplicateKeyException.c

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)