You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BR-12610 / CSI-96912 — Fixes a PHP error in the shadow C extension triggered when RecursiveDirectoryIterator encounters an unstable filesystem environment (e.g. files disappearing between directory scan and open, race conditions in build environments).
Changes:
shadow.c / shadow_cache.c / shadow_cache.h / php_shadow.h — guards added in the C extension to handle the iterator entering an error state gracefully rather than surfacing a fatal PHP error
tests/spl_recursive_iterator.phpt — new .phpt test reproducing the unstable-environment scenario to prevent regression
Shadow is the differential build/overlay tool used across SugarCRM development to layer changes without full rebuilds. Breakage here blocks developer workflows directly.
Current state
Open. The fix is targeted and self-contained. A companion test is included.
Review and merge promptly. This is a bug fix with a regression test — low risk, clear scope. The CSI ticket indicates this is causing real pain in unstable CI/dev environments. No successor ramp-up needed beyond a quick read of shadow_cache.c diff to confirm the guard logic is sound.
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
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.
…toryIterator PHP error