-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Update request startup error messages #4865
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
Update request startup error messages #4865
Conversation
82b04f7
to
c6b5352
Compare
While we're doing something about this, could we maybe drop the "line 0" ? |
I agree with @krakjoe, think it is time for that redundant part of the error message to go for good |
If you can do it I suppose it would be reasonable to bundle it in one PR. |
I've added a commit to remove another source of I also looked over the past weekend and came up with two options for removing
Let me know if I should pursue either of these, or if a better idea comes to mind. |
b9ba8c9
to
a143a49
Compare
What's the status of this PR? Can we get it ready to merge to master for 8.2? |
Hey @ramsey! No one seemed to be interested in following up on my comment, so I'd be happy to just fix the current conflicts in order to at least get an incremental improvement out for PHP 8.2. |
@ramsey I believe the PR is mergeable now, so let me know if you need anything on my end. |
First part (not sending headers) merged in 922371f |
The rest merged via 09237f6 . Thanks! I also did some checking around removing I think this doesn't need to be done here as this is already improving things. Because it could actually still make the feature freeze for PHP 8.2, I decided to merge it as it is (split in to 2 parts as those were unrelated things). Of course if you want to work on the above, which would go most likely to PHP 8.3, that would be great! In any case thanks for you contribution so far! |
This pull request adds a
PG(during_request_startup)
check in order to display a more accurate error message earlier on in the PHP request lifecycle.Additionally, I noticed a secondary warning was being generated by the
PG(expose_php)
check if an earlier warning caused the headers to already be sent. This PR adds a check forSG(headers_sent)
to prevent this spurious message.I've included some of the output of
make test
on my changes below:Something is causing the PHP version of my local build (on OS X) to be wonky and leads to the above test failure, but that is not related to my changes.