Conversation
SSE Reliability Fixes: - Fix PHP session locking blocking SSE connections - Add session_write_close() before rendering import page - Add SSE retry mechanism with exponential backoff (100ms-1600ms) - Fix output buffering order in SseService (ini_set before ob_end_clean) - Add ~8KB padding to force Apache/mod_fcgid buffer flush - Change return to exit after SSE error to prevent Response corruption Documentation: - Add "How It Works" section explaining staggered import behavior - Enhance Troubleshooting with Laragon-specific config paths - Add quick diagnostic command (php -S localhost:8000) - Document server configurations for SSE (Apache, nginx, Laragon) Git Cleanup: - Fix .gitignore to use **/CLAUDE.md pattern for all subdirectories - Remove CLAUDE.md files from git tracking
Add support for .bz2 and .sql.bz2 compressed SQL dump imports alongside existing .gz support, with full resume functionality via seek workaround. Key features: - BZ2 file detection with case-insensitive extension matching - bzopen/bzread/bzclose integration in FileHandler - ADR-001: Seek workaround using re-read strategy (O(n) resume time) - Conditional support based on PHP ext-bz2 availability - Purple "BZ2" badge in file listing - Frontend validation with custom error messages - Comprehensive test suite (24 tests across 4 files) Files modified: - src/Models/FileHandler.php - Core BZ2 support - src/Config/Config.php - Extension config + isBz2Supported() - templates/home.php - UI badge + data-bz2-supported - assets/js/fileupload.js - Conditional validation Test files created: - tests/FileHandlerBz2Test.php - tests/ConfigBz2Test.php - tests/FrontendBz2Test.php - tests/Bz2IntegrationTest.php - tests/fixtures/test_bz2_import.sql.bz2
Add standalone PHAR build for single-file deployment like Adminer. Features: - Dual-mode entry point (web browser + CLI optimizer) - Asset inlining (CSS, JS, SVG bundled in PHAR) - External config file (bigdump-config.php next to PHAR) - GitHub Actions workflow for automated releases New files: - build/build-phar.php - Build script - build/stubs/web-entry.php - Web mode bootstrap - build/stubs/cli-entry.php - CLI mode bootstrap - src/Core/PharContext.php - PHAR detection utilities - templates/layout_phar.php - Layout with inlined assets - .github/workflows/build-phar.yml - CI/CD pipeline Tests: 4 new test files, 58 tests total Output: bigdump.phar (~490 KB)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Features
bigdump.phar+ config, access in browserphp bigdump.phar dump.sql -o optimized.sqlTest plan
php tests/PharContextTest.php- 16 tests passphp tests/PharBuildTest.php- 13 tests passphp tests/PharEntryPointsTest.php- 16 tests passphp tests/ViewAssetInliningTest.php- 13 tests passphp bigdump.phar --versionworksphp bigdump.phar --helpworks