Skip to content
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

PHP8.3 compatibility #2 #20

Merged
merged 2 commits into from
Mar 17, 2024
Merged

Conversation

divinity76
Copy link

@divinity76 divinity76 commented Mar 17, 2024

Turns out PHP<8.3's proc_open does not really care if the requested working_dir does not exist, while PHP>=8.3's proc_open bails if it does not exist.

And due to a typo in the code, the dir never existed.

And due to insufficient error checking, the error was not really detected.

Took fking 4 hours to track down: divinity76#1
, and the fix is 1 byte 🤦‍♂️

Should probably complain to the php-src bugtracker, i am guessing the proc_open behavior change was unintentional (should at least be a E_DEPRECATED period "picking a non-existing working dir is deprecated and will stop working in a future version of PHP")

Turns out PHP<8.3's proc_open does not really care if the requested working_dir does not exist, while PHP>=8.3's proc_open bails if it does not exist.

And due to a typo in the code, the dir never existed.

And due to insufficient error checking, the error was not really detected.

Took fking 4 hours to track down, and the fix is 1 byte. #1

Should probably complain to the php-src bugtracker, i am guessing the proc_open behavior change was unintentional
@divinity76 divinity76 changed the title PHP8.3 compatibility PHP8.3 compatibility #2 Mar 17, 2024
@GrahamCampbell
Copy link
Member

Thanks for digging into this. 🎉

@GrahamCampbell GrahamCampbell changed the base branch from 1.5 to php83 March 17, 2024 22:32
@GrahamCampbell GrahamCampbell merged commit 3f4b1f7 into chrome-php:php83 Mar 17, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants