Skip to content

Commit b35898a

Browse files
committed
Update couchbase patch for 4.5.0
1 parent 0ed868c commit b35898a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extension/BuildPhpExtension/patches/couchbase.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@ $path = 'src/deps/couchbase-cxx-client/core/websocket_codec.cxx'
99
-replace 'static_cast<std::byte>\(\(length >> 8\) & 0xff\)', 'static_cast<std::byte>((static_cast<std::uint64_t>(length) >> 8) & 0xff)' `
1010
-replace 'static_cast<std::byte>\(length & 0xff\)', 'static_cast<std::byte>(static_cast<std::uint64_t>(length) & 0xff)' |
1111
Set-Content $path
12+
13+
$path = 'src/php_couchbase.cxx'
14+
(Get-Content $path) `
15+
-replace 'std::int64_t value = 0;', 'zend_long value = 0;' `
16+
-replace 'handle->record_core_meter_operation_duration\(value, tags\);', 'handle->record_core_meter_operation_duration(static_cast<std::int64_t>(value), tags);' |
17+
Set-Content $path

0 commit comments

Comments
 (0)