Skip to content

fix: remove cd before call to spc dump-extensions#2328

Open
fastnloud wants to merge 1 commit intophp:mainfrom
fastnloud:fix/read-extensions
Open

fix: remove cd before call to spc dump-extensions#2328
fastnloud wants to merge 1 commit intophp:mainfrom
fastnloud:fix/read-extensions

Conversation

@fastnloud
Copy link
Copy Markdown
Contributor

Not sure why this cd is in place since this invalidates the previous cd calls for the spcCommand to work. It also makes no sense since the ${EMBED} is passed as an argument here.

Or perhaps I am missing something?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the working-directory handling in build-static.sh when deriving PHP_EXTENSIONS in EMBED mode, ensuring the spc dump-extensions call doesn’t invalidate prior cd operations needed for subsequent spcCommand invocations.

Changes:

  • Remove cd "${EMBED}" before calling spc dump-extensions "${EMBED}", preventing the script from leaving the static-php-cli/ directory unexpectedly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants