Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Jul 20, 2020

Instead of storing the mapping base address and the address of
execute_ex() in a separate file in the temporary folder, we store
them right at the beginning of the memory mapping.


Note that https://bugs.php.net/73060 has been closed as WONTFIX by @weltling long ago, but I don't see why this issue should not be addressed – in my opinion, cleaning the temp folder from time to time shouldn't cause new worker processes failing to start.

Instead of storing the mapping base address and the address of
`execute_ex()` in a separate file in the temporary folder, we store
them right at the beginning of the memory mapping.
@cmb69 cmb69 added the Bug label Jul 20, 2020
@cmb69
Copy link
Member Author

cmb69 commented Jul 27, 2020

Any thoughts on this?

@dstogov, do you see any technical issues with storing the base addresses in the SHM, instead in a file?

@dstogov
Copy link
Member

dstogov commented Jul 27, 2020

@cmb69 keeping addresses in SHM should be fine.

@cmb69
Copy link
Member Author

cmb69 commented Jul 28, 2020

Thanks, @dstogov!

I've pushed some minor improvements, tested again, and I'm planning to merge this PR, when CI has passed. I'll do more extensive testing when the snapshots are available.

@cmb69
Copy link
Member Author

cmb69 commented Jul 29, 2020

Applied as 9a744c6.

@cmb69 cmb69 closed this Jul 29, 2020
@cmb69 cmb69 deleted the cmb/73060 branch July 29, 2020 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants