Skip to content

Commit 0d2f893

Browse files
committed
Fix clang-format script for ubuntu 24.04
1 parent a0860c3 commit 0d2f893

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

scripts/clang-format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [ -z "$CLANG_FORMAT" ]; then
2929
exit
3030
fi
3131

32-
VERSION=`$CLANG_FORMAT -version | cut -d " " -f 3`
32+
VERSION=`$CLANG_FORMAT -version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+'`
3333
VERSION_MAJOR=`echo $VERSION | cut -d "." -f 1`
3434

3535
if [ $VERSION_MAJOR -lt 6 ]; then

src/phongo_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ static mongoc_client_t* php_phongo_make_mongo_client(const mongoc_uri_t* uri, zv
11281128
#ifdef HAVE_SYSTEM_LIBBSON
11291129
bson_version = bson_get_version();
11301130
#else
1131-
bson_version = "bundled";
1131+
bson_version = "bundled";
11321132
#endif
11331133

11341134
MONGOC_DEBUG(

src/phongo_compat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
#define PHONGO_PARSE_PARAMETERS_END() \
173173
ZEND_PARSE_PARAMETERS_END_EX( \
174174
zend_restore_error_handling(&error_handling); \
175-
return ); \
175+
return); \
176176
zend_restore_error_handling(&error_handling); \
177177
} \
178178
while (0)

0 commit comments

Comments
 (0)