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

Tests that show register shutdown function issue (#70) is invalid #108

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

justinmaurerdotdev
Copy link

This addresses #70. This one is sort of complicated to reproduce accurately, but these tests demonstrate that a registered shutdown function is capable of writing to a file, so the reported issue is invalid, and can probably be safely closed as a "will not fix". Brian and I decided that we preferred the error_log() demonstration over file_put_contents() for Behat, but we tested both ways and the result was the same.

Submitted during Contributor Day.


register_shutdown_function(function() {
error_log('LOG A SHUTDOWN FROM ERROR');
// file_put_contents( dirname( __FILE__ ) . '/log.log', print_r( 'Shutdown called correctly', true ) . "\r\n\r\n", FILE_APPEND );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line can be removed.

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.

3 participants