Skip to content

Commit 9f1e2bc

Browse files
committed
PHPC-2346: Remove deprecated BSON functions
1 parent 04c29be commit 9f1e2bc

File tree

65 files changed

+113
-5863
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+113
-5863
lines changed

config.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ if test "$PHP_MONGODB" != "no"; then
165165
src/BSON/Unserializable.c \
166166
src/BSON/UTCDateTime.c \
167167
src/BSON/UTCDateTimeInterface.c \
168-
src/BSON/functions.c \
169168
src/MongoDB/BulkWrite.c \
170169
src/MongoDB/ClientEncryption.c \
171170
src/MongoDB/Command.c \

config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if (PHP_MONGODB != "no") {
115115

116116
EXTENSION("mongodb", "php_phongo.c", null, PHP_MONGODB_CFLAGS);
117117
MONGODB_ADD_SOURCES("/src", "phongo_apm.c phongo_bson.c phongo_bson_encode.c phongo_client.c phongo_compat.c phongo_error.c phongo_execute.c phongo_ini.c phongo_log.c phongo_util.c");
118-
MONGODB_ADD_SOURCES("/src/BSON", "Binary.c BinaryInterface.c Document.c Iterator.c DBPointer.c Decimal128.c Decimal128Interface.c Int64.c Javascript.c JavascriptInterface.c MaxKey.c MaxKeyInterface.c MinKey.c MinKeyInterface.c ObjectId.c ObjectIdInterface.c PackedArray.c Persistable.c Regex.c RegexInterface.c Serializable.c Symbol.c Timestamp.c TimestampInterface.c Type.c Undefined.c Unserializable.c UTCDateTime.c UTCDateTimeInterface.c functions.c");
118+
MONGODB_ADD_SOURCES("/src/BSON", "Binary.c BinaryInterface.c Document.c Iterator.c DBPointer.c Decimal128.c Decimal128Interface.c Int64.c Javascript.c JavascriptInterface.c MaxKey.c MaxKeyInterface.c MinKey.c MinKeyInterface.c ObjectId.c ObjectIdInterface.c PackedArray.c Persistable.c Regex.c RegexInterface.c Serializable.c Symbol.c Timestamp.c TimestampInterface.c Type.c Undefined.c Unserializable.c UTCDateTime.c UTCDateTimeInterface.c");
119119
MONGODB_ADD_SOURCES("/src/MongoDB", "BulkWrite.c ClientEncryption.c Command.c Cursor.c CursorId.c CursorInterface.c Manager.c Query.c ReadConcern.c ReadPreference.c Server.c ServerApi.c ServerDescription.c Session.c TopologyDescription.c WriteConcern.c WriteConcernError.c WriteError.c WriteResult.c");
120120
MONGODB_ADD_SOURCES("/src/MongoDB/Exception", "AuthenticationException.c BulkWriteException.c CommandException.c ConnectionException.c ConnectionTimeoutException.c EncryptionException.c Exception.c ExecutionTimeoutException.c InvalidArgumentException.c LogicException.c RuntimeException.c ServerException.c SSLConnectionException.c UnexpectedValueException.c WriteException.c");
121121
MONGODB_ADD_SOURCES("/src/MongoDB/Monitoring", "CommandFailedEvent.c CommandStartedEvent.c CommandSubscriber.c CommandSucceededEvent.c LogSubscriber.c SDAMSubscriber.c Subscriber.c ServerChangedEvent.c ServerClosedEvent.c ServerHeartbeatFailedEvent.c ServerHeartbeatStartedEvent.c ServerHeartbeatSucceededEvent.c ServerOpeningEvent.c TopologyChangedEvent.c TopologyClosedEvent.c TopologyOpeningEvent.c functions.c");

src/BSON/functions.c

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

src/functions.stub.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,6 @@
22

33
/** @generate-function-entries */
44

5-
namespace MongoDB\BSON {
6-
/** @deprecated use MongoDB\BSON\Document::fromJSON instead */
7-
function fromJSON(string $json): string {}
8-
9-
/** @deprecated use MongoDB\BSON\Document::fromPHP instead */
10-
function fromPHP(array|object $value): string {}
11-
12-
/** @deprecated use MongoDB\BSON\Document::toCanonicalExtendedJSON instead */
13-
function toCanonicalExtendedJSON(string $bson): string {}
14-
15-
/** @deprecated */
16-
function toJSON(string $bson): string {}
17-
18-
/** @deprecated use MongoDB\BSON\Document::toPHP instead */
19-
function toPHP(string $bson, ?array $typemap = null): array|object {}
20-
21-
/** @deprecated use MongoDB\BSON\Document::toRelaxedExtendedJSON instead */
22-
function toRelaxedExtendedJSON(string $bson): string {}
23-
}
24-
255
namespace MongoDB\Driver\Monitoring {
266
function addSubscriber(Subscriber $subscriber): void {}
277

src/functions_arginfo.h

Lines changed: 1 addition & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/bson/bson-fromJSON-001.phpt

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

tests/bson/bson-fromJSON-002.phpt

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

tests/bson/bson-fromJSON-003.phpt

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

tests/bson/bson-fromJSON_error-001.phpt

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

0 commit comments

Comments
 (0)