Skip to content

Commit 9ea3198

Browse files
committed
Add note about external cdb library
External cdb library is most likely tinycdb, which, at the time of writing, isn't compatible with PHP.
1 parent fe61dfc commit 9ea3198

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cmake/ext/dba/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,17 @@ if(EXT_DBA_CDB)
236236
target_link_libraries(php_dba PRIVATE Cdb::Cdb)
237237

238238
set(CDB_INCLUDE_FILE "<cdb.h>")
239+
240+
# At the time of writing external cdb library installed on *nix systems is
241+
# most likely tinycdb, which isn't supported by PHP.
242+
message(
243+
WARNING
244+
"When using external tinycdb library, it has different cdb_findnext() "
245+
"signature, cdb_make* functions and doesn't use legacy uint32 type. PHP "
246+
"source code isn't adjusted for using it yet. Recommendation is to "
247+
"disable the 'EXT_DBA_CDB_EXTERNAL' (set it to 'OFF'), which will use "
248+
"the cdb library bundled with PHP."
249+
)
239250
else()
240251
target_sources(
241252
php_dba

0 commit comments

Comments
 (0)