Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Optimizes reading

AuthorDave Jarvis <email>
Date2026-02-09 22:28:18 GMT-0800
Commit441a2764015dc73ccd628bf6497f4ebfc250dc22
Parent0f005ad
Git.php
}
+ // Fix: Check for ZLIB_STREAM_END to prevent reading to EOF on small headers
while( !feof( $fileHandle ) && strlen( $headerData ) < 32 ) {
+ if( inflate_get_status( $inflateContext ) === ZLIB_STREAM_END ) {
+ break;
+ }
+
$inflated = @inflate_add(
$inflateContext,
Delta5 lines added, 0 lines removed, 5-line increase