Skip to content

Commit 4b24338

Browse files
committed
Do not forbid serialization of final exception classes
We do not forbid serialization of other exception classes. Serialization was only forbidden for these classes because we used PHONGO_CE_INIT() to declare them final.
1 parent e80ff22 commit 4b24338

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/MongoDB/Exception/ConnectionTimeoutException.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ PHP_MINIT_FUNCTION(ConnectionTimeoutException)
6767
php_phongo_connectiontimeoutexception_ce = zend_register_internal_class_ex(&ce, php_phongo_connectionexception_ce, NULL TSRMLS_CC);
6868
#endif
6969
PHONGO_CE_FINAL(php_phongo_connectiontimeoutexception_ce);
70-
PHONGO_CE_DISABLE_SERIALIZATION(php_phongo_connectiontimeoutexception_ce);
7170

7271
return SUCCESS;
7372
}

src/MongoDB/Exception/ExecutionTimeoutException.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ PHP_MINIT_FUNCTION(ExecutionTimeoutException)
6767
php_phongo_executiontimeoutexception_ce = zend_register_internal_class_ex(&ce, php_phongo_runtimeexception_ce, NULL TSRMLS_CC);
6868
#endif
6969
PHONGO_CE_FINAL(php_phongo_executiontimeoutexception_ce);
70-
PHONGO_CE_DISABLE_SERIALIZATION(php_phongo_executiontimeoutexception_ce);
7170

7271
return SUCCESS;
7372
}

src/MongoDB/Exception/SSLConnectionException.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ PHP_MINIT_FUNCTION(SSLConnectionException)
6767
php_phongo_sslconnectionexception_ce = zend_register_internal_class_ex(&ce, php_phongo_connectionexception_ce, NULL TSRMLS_CC);
6868
#endif
6969
PHONGO_CE_FINAL(php_phongo_sslconnectionexception_ce);
70-
PHONGO_CE_DISABLE_SERIALIZATION(php_phongo_sslconnectionexception_ce);
7170

7271
return SUCCESS;
7372
}

0 commit comments

Comments
 (0)