Skip to content

Conversation

@nielsdos
Copy link
Member

Since the ini message handlers already check for basedir, we need to drop the basedir check from ini_set. Then we also fix the exceptional case for the empty string: it should bypass the basedir check. Furthermore, there was a regression introduced with the error_log "syslog" check in ddfe269 (inverted check), so we fix that as well.

@nielsdos nielsdos requested a review from bukka as a code owner August 15, 2025 09:08
@nielsdos nielsdos linked an issue Aug 15, 2025 that may be closed by this pull request
@nielsdos nielsdos marked this pull request as draft August 15, 2025 09:24
…is configured

Since the ini message handlers already check for basedir, we need to
drop the basedir check from ini_set. Then we also fix the exceptional
case for the empty string: it should bypass the basedir check.
Furthermore, there was a regression introduced with the error_log
"syslog" check in ddfe269 (inverted check), so we fix that as well.
@nielsdos nielsdos marked this pull request as ready for review August 15, 2025 15:05
@nielsdos nielsdos requested a review from Girgias August 29, 2025 17:32
@mvorisek
Copy link
Contributor

mvorisek commented Sep 6, 2025

Can this bugfix be merged please?

@nielsdos nielsdos requested a review from devnexen September 6, 2025 16:21
@mvorisek
Copy link
Contributor

@nielsdos @devnexen @iluuu1994 can this bugfix be merged please - it prevents all users to use PHPUnit 12.x when open_basedir is non-empty.

@devnexen
Copy link
Member

Sorry I missed the review

@arnaud-lb arnaud-lb closed this in 7a1bb71 Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

error_log php.ini cannot be unset when open_basedir is configured

4 participants