Skip to content

Commit b2f29d8

Browse files
committed
PHP-1338: There is actually no DBRef BSON type, its a convention
1 parent 2dce588 commit b2f29d8

File tree

4 files changed

+0
-120
lines changed

4 files changed

+0
-120
lines changed

config.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ if test "$PHONGO" != "no"; then
141141
PHONGO_BSON_CLASSES="\
142142
src/BSON/Type.c \
143143
src/BSON/Binary.c \
144-
src/BSON/DBRef.c \
145144
src/BSON/Javascript.c \
146145
src/BSON/MaxKey.c \
147146
src/BSON/MinKey.c \

php_phongo.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,6 @@ PHP_MINIT_FUNCTION(phongo)
13981398

13991399
PHP_MINIT(Type)(INIT_FUNC_ARGS_PASSTHRU);
14001400
PHP_MINIT(Binary)(INIT_FUNC_ARGS_PASSTHRU);
1401-
PHP_MINIT(DBRef)(INIT_FUNC_ARGS_PASSTHRU);
14021401
PHP_MINIT(Javascript)(INIT_FUNC_ARGS_PASSTHRU);
14031402
PHP_MINIT(MaxKey)(INIT_FUNC_ARGS_PASSTHRU);
14041403
PHP_MINIT(MinKey)(INIT_FUNC_ARGS_PASSTHRU);

php_phongo_classes.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ typedef struct {
130130
int data_len;
131131
int subtype;
132132
} php_phongo_binary_t;
133-
typedef struct {
134-
zend_object std;
135-
} php_phongo_dbref_t;
136133
typedef struct {
137134
zend_object std;
138135
} php_phongo_int32_t;
@@ -194,7 +191,6 @@ extern PHONGO_API zend_class_entry *php_phongo_writeresult_ce;
194191

195192
extern PHONGO_API zend_class_entry *php_phongo_type_ce;
196193
extern PHONGO_API zend_class_entry *php_phongo_binary_ce;
197-
extern PHONGO_API zend_class_entry *php_phongo_dbref_ce;
198194
extern PHONGO_API zend_class_entry *php_phongo_int32_ce;
199195
extern PHONGO_API zend_class_entry *php_phongo_int64_ce;
200196
extern PHONGO_API zend_class_entry *php_phongo_javascript_ce;
@@ -225,7 +221,6 @@ PHP_MINIT_FUNCTION(WriteResult);
225221

226222
PHP_MINIT_FUNCTION(Type);
227223
PHP_MINIT_FUNCTION(Binary);
228-
PHP_MINIT_FUNCTION(DBRef);
229224
PHP_MINIT_FUNCTION(Javascript);
230225
PHP_MINIT_FUNCTION(MaxKey);
231226
PHP_MINIT_FUNCTION(MinKey);

src/BSON/DBRef.c

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

0 commit comments

Comments
 (0)