Skip to content

Commit 7beb720

Browse files
committed
Only use typed serialize signature on PHP 8+
1 parent 3258ec7 commit 7beb720

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MongoDB/ServerApi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,11 @@ ZEND_BEGIN_ARG_INFO_EX(ai_ServerApi___set_state, 0, 0, 1)
278278
ZEND_END_ARG_INFO()
279279

280280
ZEND_BEGIN_ARG_INFO_EX(ai_ServerApi_unserialize, 0, 0, 1)
281+
#if PHP_VERSION_ID >= 80000
281282
ZEND_ARG_TYPE_INFO(0, serialized, IS_STRING, 0)
283+
#else
284+
ZEND_ARG_INFO(0, serialized)
285+
#endif
282286
ZEND_END_ARG_INFO()
283287

284288
ZEND_BEGIN_ARG_INFO_EX(ai_ServerApi_void, 0, 0, 0)

0 commit comments

Comments
 (0)