Skip to content

Conversation

arnaud-lb
Copy link
Member

@arnaud-lb arnaud-lb commented May 13, 2022

Newly added dl() tests fail because of an assertion failure in ZEND_RC_DEBUG builds. This change disables zend_rc_debug during dl() to allows these tests to pass.

This is not a regression, hence the "fix".

The issue is that we assert that we do not create persistent interned strings during request, which I believe would indicate a bug and would not be thread safe. But, as acknowledged by the comments above the assertions, this can still happen during dl(). I'm not sure whether this is safe or not, although it may be as long as dl() is not enabled in threaded SAPIs.

Newly added dl() tests trigger an assertion in ZEND_RC_DEBUG builds. This change
disables zend_rc_debug to allows these tests to pass until this issue is
resolved.
@arnaud-lb arnaud-lb marked this pull request as ready for review May 13, 2022 22:03
@arnaud-lb arnaud-lb merged commit e9fcb5b into php:PHP-8.1 May 17, 2022
arnaud-lb added a commit to arnaud-lb/php-src that referenced this pull request May 22, 2022
Newly added dl() tests trigger an assertion in ZEND_RC_DEBUG builds. This change
disables zend_rc_debug to allows these tests to pass until this issue is
resolved.

See phpGH-8552
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.

1 participant