Skip to content

feat(alloc): add estrdup #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Qard
Copy link
Contributor

@Qard Qard commented Jun 12, 2025

This adds estrdup to alloc. This is needed with SAPI when ZTS is enabled as file_handles need their input path to be allocated in the PHP memory manager. I've also added a unit test for emalloc while I was in there, along with using efree, and added a cfg gate to a test which depended on anyhow errors.

I've omitted the docsrs_bindings.rs binding update for now until we figure out what the solution is to generating those correctly.

@Qard Qard force-pushed the add-estrdup branch 3 times, most recently from 9d9d00e to b3a46cd Compare June 12, 2025 12:04
@coveralls
Copy link

coveralls commented Jun 12, 2025

Pull Request Test Coverage Report for Build 15651099932

Details

  • 10 of 10 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.7%) to 21.838%

Totals Coverage Status
Change from base Build 15650590374: 0.7%
Covered Lines: 860
Relevant Lines: 3938

💛 - Coveralls

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