Skip to content

Commit 814c5c6

Browse files
committed
Fix zend_stream function to be compatible for Zend LList
1 parent 3ad571b commit 814c5c6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Zend/zend_stream.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ ZEND_API void zend_file_handle_dtor(zend_file_handle *fh) /* {{{ */
232232
}
233233
/* }}} */
234234

235-
ZEND_API bool zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2) /* {{{ */
235+
/* return int to be compatible with Zend linked list API */
236+
ZEND_API int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2) /* {{{ */
236237
{
237238
if (fh1->type != fh2->type) {
238239
return 0;

Zend/zend_stream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ZEND_API void zend_stream_init_filename(zend_file_handle *handle, const char *fi
6969
ZEND_API ZEND_RESULT_CODE zend_stream_open(const char *filename, zend_file_handle *handle);
7070
ZEND_API ZEND_RESULT_CODE zend_stream_fixup(zend_file_handle *file_handle, char **buf, size_t *len);
7171
ZEND_API void zend_file_handle_dtor(zend_file_handle *fh);
72-
ZEND_API bool zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2);
72+
ZEND_API int zend_compare_file_handles(zend_file_handle *fh1, zend_file_handle *fh2);
7373
END_EXTERN_C()
7474

7575
#ifdef ZEND_WIN32

0 commit comments

Comments
 (0)