Skip to content

Fix Bug #73462 - Persistent connections don't set $connect_errno - #2195

Closed
darkain wants to merge 3 commits into
php:PHP-5.6from
darkain:PHP-5.6
Closed

Fix Bug #73462 - Persistent connections don't set $connect_errno#2195
darkain wants to merge 3 commits into
php:PHP-5.6from
darkain:PHP-5.6

Conversation

@darkain

@darkain darkain commented Nov 8, 2016

Copy link
Copy Markdown
Contributor

Persistent connections skipped resetting $connect_error and $connect_errno values
This adds the "clear error" line to persistent connections for consistency

Persistent connections skipped resetting $connect_error and $connect_errno values
This adds the "clear error" line to persistent connections for consistency
@darkain

darkain commented Nov 9, 2016

Copy link
Copy Markdown
Contributor Author

The Travis CI environment is entirely unpredictable. Just pushed in a commit of just white-space change to the markdown file, and all compilation tests passed this time, vs failing randomly and arbitrarily before.

@KalleZ

KalleZ commented Nov 9, 2016

Copy link
Copy Markdown
Member

@darkain don't bother too much with Travis, I stopped caring much about it a while ago since as you mentioned, is way too inconsistent

@marcosptf

Copy link
Copy Markdown
Contributor

this bugfix need a test, to be sure that it works fine.
what you think about?

The connection is now verified to be persistent when.
If the connection isn't persistent, then the bug wouldn't present itself anyways.
@php-pulls

Copy link
Copy Markdown

Comment on behalf of krakjoe at php.net:

adding label

@php-pulls php-pulls added the Bug label Nov 15, 2016
@krakjoe

krakjoe commented Jan 3, 2017

Copy link
Copy Markdown
Member

Since this targets a security fix only branch of PHP, and since the author seems to have abandoned working on it anyway, I'm closing this PR.

Please take this action as encouragement to open a clean PR against a supported branch.

@krakjoe krakjoe closed this Jan 3, 2017
@nikic

nikic commented Jan 3, 2017

Copy link
Copy Markdown
Member

Doesn't look abandoned to me...

@nikic nikic reopened this Jan 3, 2017
@krakjoe

krakjoe commented Jan 3, 2017

Copy link
Copy Markdown
Member

Also it appears to apply cleanly to master at least ... I'm sure I checked that ... my mistake ...

@nikic

nikic commented Jan 3, 2017

Copy link
Copy Markdown
Member

Merged via cfd6e14, thanks!

@nikic nikic closed this Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants