Skip to content

Commit f2bbcad

Browse files
committed
PHP7.4 compatibility - 2 (swoole#2506).
1 parent 668af4e commit f2bbcad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swoole_trace.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ static int trace_dump(swWorker *worker, FILE *slowlog)
199199
return -__LINE__;
200200
}
201201

202-
#if PHP_VERSION_ID < 80000
202+
#if PHP_VERSION_ID < 70400
203203
if (ZEND_CALL_KIND_EX((*call_info) >> ZEND_CALL_INFO_SHIFT) == ZEND_CALL_TOP_CODE)
204204
#else
205205
if (ZEND_CALL_KIND_EX(*call_info) == ZEND_CALL_TOP_CODE)
206206
#endif
207207
{
208208
return 0;
209209
}
210-
#if PHP_VERSION_ID < 80000
210+
#if PHP_VERSION_ID < 70400
211211
else if (ZEND_CALL_KIND_EX(*(call_info) >> ZEND_CALL_INFO_SHIFT) == ZEND_CALL_NESTED_CODE)
212212
#else
213213
else if (ZEND_CALL_KIND_EX(*call_info) == ZEND_CALL_NESTED_CODE)

0 commit comments

Comments
 (0)