Skip to content

Commit 046c161

Browse files
committed
Merged pull request #401
2 parents a3b7729 + 9fb1e35 commit 046c161

File tree

9 files changed

+0
-151
lines changed

9 files changed

+0
-151
lines changed

src/BSON/Binary.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -153,24 +153,6 @@ PHP_METHOD(Binary, __toString)
153153
}
154154
/* }}} */
155155

156-
/* {{{ proto void Binary::__wakeup()
157-
*/
158-
PHP_METHOD(Binary, __wakeup)
159-
{
160-
php_phongo_binary_t *intern;
161-
HashTable *props;
162-
163-
if (zend_parse_parameters_none() == FAILURE) {
164-
return;
165-
}
166-
167-
intern = Z_BINARY_OBJ_P(getThis());
168-
props = zend_std_get_properties(getThis() TSRMLS_CC);
169-
170-
php_phongo_binary_init_from_hash(intern, props TSRMLS_CC);
171-
}
172-
/* }}} */
173-
174156
/* {{{ proto string Binary::getData()
175157
*/
176158
PHP_METHOD(Binary, getData)
@@ -317,7 +299,6 @@ static zend_function_entry php_phongo_binary_me[] = {
317299
PHP_ME(Binary, __construct, ai_Binary___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
318300
PHP_ME(Binary, __set_state, ai_Binary___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
319301
PHP_ME(Binary, __toString, ai_Binary_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
320-
PHP_ME(Binary, __wakeup, ai_Binary_void, ZEND_ACC_PUBLIC)
321302
PHP_ME(Binary, serialize, ai_Binary_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
322303
PHP_ME(Binary, unserialize, ai_Binary_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
323304
PHP_ME(Binary, getData, ai_Binary_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)

src/BSON/Decimal128.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -151,24 +151,6 @@ PHP_METHOD(Decimal128, __toString)
151151
}
152152
/* }}} */
153153

154-
/* {{{ proto void Decimal128::__wakeup()
155-
*/
156-
PHP_METHOD(Decimal128, __wakeup)
157-
{
158-
php_phongo_decimal128_t *intern;
159-
HashTable *props;
160-
161-
if (zend_parse_parameters_none() == FAILURE) {
162-
return;
163-
}
164-
165-
intern = Z_DECIMAL128_OBJ_P(getThis());
166-
props = zend_std_get_properties(getThis() TSRMLS_CC);
167-
168-
php_phongo_decimal128_init_from_hash(intern, props TSRMLS_CC);
169-
}
170-
/* }}} */
171-
172154
/* {{{ proto string Decimal128::serialize()
173155
*/
174156
PHP_METHOD(Decimal128, serialize)
@@ -280,7 +262,6 @@ static zend_function_entry php_phongo_decimal128_me[] = {
280262
PHP_ME(Decimal128, __construct, ai_Decimal128___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
281263
PHP_ME(Decimal128, __set_state, ai_Decimal128___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
282264
PHP_ME(Decimal128, __toString, ai_Decimal128_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
283-
PHP_ME(Decimal128, __wakeup, ai_Decimal128_void, ZEND_ACC_PUBLIC)
284265
PHP_ME(Decimal128, serialize, ai_Decimal128_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
285266
PHP_ME(Decimal128, unserialize, ai_Decimal128_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
286267
PHP_FE_END

src/BSON/Javascript.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -168,24 +168,6 @@ PHP_METHOD(Javascript, __toString)
168168
}
169169
/* }}} */
170170

171-
/* {{{ proto void Javascript::__wakeup()
172-
*/
173-
PHP_METHOD(Javascript, __wakeup)
174-
{
175-
php_phongo_javascript_t *intern;
176-
HashTable *props;
177-
178-
if (zend_parse_parameters_none() == FAILURE) {
179-
return;
180-
}
181-
182-
intern = Z_JAVASCRIPT_OBJ_P(getThis());
183-
props = zend_std_get_properties(getThis() TSRMLS_CC);
184-
185-
php_phongo_javascript_init_from_hash(intern, props TSRMLS_CC);
186-
}
187-
/* }}} */
188-
189171
/* {{{ proto string Javascript::getCode()
190172
*/
191173
PHP_METHOD(Javascript, getCode)
@@ -369,7 +351,6 @@ static zend_function_entry php_phongo_javascript_me[] = {
369351
PHP_ME(Javascript, __construct, ai_Javascript___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
370352
PHP_ME(Javascript, __set_state, ai_Javascript___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
371353
PHP_ME(Javascript, __toString, ai_Javascript_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
372-
PHP_ME(Javascript, __wakeup, ai_Javascript_void, ZEND_ACC_PUBLIC)
373354
PHP_ME(Javascript, serialize, ai_Javascript_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
374355
PHP_ME(Javascript, unserialize, ai_Javascript_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
375356
PHP_ME(Javascript, getCode, ai_Javascript_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)

src/BSON/MaxKey.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ PHP_METHOD(MaxKey, __set_state)
6060
}
6161
/* }}} */
6262

63-
/* {{{ proto MaxKey::__wakeup()
64-
*/
65-
PHP_METHOD(MaxKey, __wakeup)
66-
{
67-
zend_parse_parameters_none();
68-
}
69-
/* }}} */
70-
7163
/* {{{ proto string MaxKey::serialize()
7264
*/
7365
PHP_METHOD(MaxKey, serialize)
@@ -109,7 +101,6 @@ ZEND_END_ARG_INFO()
109101

110102
static zend_function_entry php_phongo_maxkey_me[] = {
111103
PHP_ME(MaxKey, __set_state, ai_MaxKey___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
112-
PHP_ME(MaxKey, __wakeup, ai_MaxKey_void, ZEND_ACC_PUBLIC)
113104
PHP_ME(MaxKey, serialize, ai_MaxKey_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
114105
PHP_ME(MaxKey, unserialize, ai_MaxKey_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
115106
PHP_FE_END

src/BSON/MinKey.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ PHP_METHOD(MinKey, __set_state)
6060
}
6161
/* }}} */
6262

63-
/* {{{ proto MinKey::__wakeup()
64-
*/
65-
PHP_METHOD(MinKey, __wakeup)
66-
{
67-
zend_parse_parameters_none();
68-
}
69-
/* }}} */
70-
7163
/* {{{ proto string MinKey::serialize()
7264
*/
7365
PHP_METHOD(MinKey, serialize)
@@ -109,7 +101,6 @@ ZEND_END_ARG_INFO()
109101

110102
static zend_function_entry php_phongo_minkey_me[] = {
111103
PHP_ME(MinKey, __set_state, ai_MinKey___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
112-
PHP_ME(MinKey, __wakeup, ai_MinKey_void, ZEND_ACC_PUBLIC)
113104
PHP_ME(MinKey, serialize, ai_MinKey_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
114105
PHP_ME(MinKey, unserialize, ai_MinKey_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
115106
PHP_FE_END

src/BSON/ObjectID.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -197,24 +197,6 @@ PHP_METHOD(ObjectID, __toString)
197197
}
198198
/* }}} */
199199

200-
/* {{{ proto ObjectID::__wakeup()
201-
*/
202-
PHP_METHOD(ObjectID, __wakeup)
203-
{
204-
php_phongo_objectid_t *intern;
205-
HashTable *props;
206-
207-
if (zend_parse_parameters_none() == FAILURE) {
208-
return;
209-
}
210-
211-
intern = Z_OBJECTID_OBJ_P(getThis());
212-
props = zend_std_get_properties(getThis() TSRMLS_CC);
213-
214-
php_phongo_objectid_init_from_hash(intern, props TSRMLS_CC);
215-
}
216-
/* }}} */
217-
218200
/* {{{ proto string ObjectID::serialize()
219201
*/
220202
PHP_METHOD(ObjectID, serialize)
@@ -324,7 +306,6 @@ static zend_function_entry php_phongo_objectid_me[] = {
324306
PHP_ME(ObjectID, getTimestamp, ai_ObjectID_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
325307
PHP_ME(ObjectID, __set_state, ai_ObjectID___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
326308
PHP_ME(ObjectID, __toString, ai_ObjectID_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
327-
PHP_ME(ObjectID, __wakeup, ai_ObjectID_void, ZEND_ACC_PUBLIC)
328309
PHP_ME(ObjectID, serialize, ai_ObjectID_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
329310
PHP_ME(ObjectID, unserialize, ai_ObjectID_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
330311
PHP_FE_END

src/BSON/Regex.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -206,24 +206,6 @@ PHP_METHOD(Regex, __toString)
206206
}
207207
/* }}} */
208208

209-
/* {{{ proto void Regex::__wakeup()
210-
*/
211-
PHP_METHOD(Regex, __wakeup)
212-
{
213-
php_phongo_regex_t *intern;
214-
HashTable *props;
215-
216-
if (zend_parse_parameters_none() == FAILURE) {
217-
return;
218-
}
219-
220-
intern = Z_REGEX_OBJ_P(getThis());
221-
props = zend_std_get_properties(getThis() TSRMLS_CC);
222-
223-
php_phongo_regex_init_from_hash(intern, props TSRMLS_CC);
224-
}
225-
/* }}} */
226-
227209
/* {{{ proto string Regex::serialize()
228210
*/
229211
PHP_METHOD(Regex, serialize)
@@ -335,7 +317,6 @@ static zend_function_entry php_phongo_regex_me[] = {
335317
PHP_ME(Regex, __construct, ai_Regex___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
336318
PHP_ME(Regex, __set_state, ai_Regex___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
337319
PHP_ME(Regex, __toString, ai_Regex_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
338-
PHP_ME(Regex, __wakeup, ai_Regex_void, ZEND_ACC_PUBLIC)
339320
PHP_ME(Regex, serialize, ai_Regex_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
340321
PHP_ME(Regex, unserialize, ai_Regex_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
341322
PHP_ME(Regex, getPattern, ai_Regex_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)

src/BSON/Timestamp.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -214,24 +214,6 @@ PHP_METHOD(Timestamp, __toString)
214214
}
215215
/* }}} */
216216

217-
/* {{{ proto void Timestamp::__wakeup()
218-
*/
219-
PHP_METHOD(Timestamp, __wakeup)
220-
{
221-
php_phongo_timestamp_t *intern;
222-
HashTable *props;
223-
224-
if (zend_parse_parameters_none() == FAILURE) {
225-
return;
226-
}
227-
228-
intern = Z_TIMESTAMP_OBJ_P(getThis());
229-
props = zend_std_get_properties(getThis() TSRMLS_CC);
230-
231-
php_phongo_timestamp_init_from_hash(intern, props TSRMLS_CC);
232-
}
233-
/* }}} */
234-
235217
/* {{{ proto string Timestamp::serialize()
236218
*/
237219
PHP_METHOD(Timestamp, serialize)
@@ -350,7 +332,6 @@ static zend_function_entry php_phongo_timestamp_me[] = {
350332
PHP_ME(Timestamp, __construct, ai_Timestamp___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
351333
PHP_ME(Timestamp, __set_state, ai_Timestamp___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
352334
PHP_ME(Timestamp, __toString, ai_Timestamp_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
353-
PHP_ME(Timestamp, __wakeup, ai_Timestamp_void, ZEND_ACC_PUBLIC)
354335
PHP_ME(Timestamp, serialize, ai_Timestamp_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
355336
PHP_ME(Timestamp, unserialize, ai_Timestamp_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
356337
PHP_FE_END

src/BSON/UTCDateTime.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -248,24 +248,6 @@ PHP_METHOD(UTCDateTime, __toString)
248248
}
249249
/* }}} */
250250

251-
/* {{{ proto void UTCDateTime::__wakeup()
252-
*/
253-
PHP_METHOD(UTCDateTime, __wakeup)
254-
{
255-
php_phongo_utcdatetime_t *intern;
256-
HashTable *props;
257-
258-
if (zend_parse_parameters_none() == FAILURE) {
259-
return;
260-
}
261-
262-
intern = Z_UTCDATETIME_OBJ_P(getThis());
263-
props = zend_std_get_properties(getThis() TSRMLS_CC);
264-
265-
php_phongo_utcdatetime_init_from_hash(intern, props TSRMLS_CC);
266-
}
267-
/* }}} */
268-
269251
/* {{{ proto DateTime UTCDateTime::toDateTime()
270252
Returns a DateTime object representing this UTCDateTime */
271253
PHP_METHOD(UTCDateTime, toDateTime)
@@ -407,7 +389,6 @@ static zend_function_entry php_phongo_utcdatetime_me[] = {
407389
PHP_ME(UTCDateTime, __construct, ai_UTCDateTime___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
408390
PHP_ME(UTCDateTime, __set_state, ai_UTCDateTime___set_state, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
409391
PHP_ME(UTCDateTime, __toString, ai_UTCDateTime_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
410-
PHP_ME(UTCDateTime, __wakeup, ai_UTCDateTime_void, ZEND_ACC_PUBLIC)
411392
PHP_ME(UTCDateTime, serialize, ai_UTCDateTime_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
412393
PHP_ME(UTCDateTime, unserialize, ai_UTCDateTime_unserialize, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)
413394
PHP_ME(UTCDateTime, toDateTime, ai_UTCDateTime_void, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL)

0 commit comments

Comments
 (0)