Skip to content

PHP bug 67130: nextRowset should work with unfetched rows #2134

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

Closed
wants to merge 1 commit into from

Conversation

peterlebrun
Copy link

Bug 67130: Calling nextRowset() with unfetched rows causes a segfault.

I have fixed this by fetching any unfetched rows before advancing the rowset. Attached is a test case.

@nikic
Copy link
Member

nikic commented Sep 20, 2016

/cc @adambaratz

@adambaratz
Copy link
Contributor

Thanks for the PR. Could you close this and create a new one against the PHP-7.0 branch? master is 7.2, which is still a ways away from being released. It would be nice to get this fix out sooner.

@nikic nikic changed the base branch from master to PHP-7.0 September 21, 2016 14:48
@nikic nikic changed the base branch from PHP-7.0 to master September 21, 2016 14:48
@nikic
Copy link
Member

nikic commented Sep 21, 2016

@adambaratz Unless code has diverged, it's easy to apply PRs to a different branch by wget https://github.com/php/php-src/pull/2134.patch and git am 2134.patch. This is how I usually merge PRs :)

@staabm
Copy link
Contributor

staabm commented Sep 21, 2016

@nikic since a few weeks the person which generated the PR can also do this via webinterface on github.
see https://github.com/blog/2224-change-the-base-branch-of-a-pull-request

@nikic
Copy link
Member

nikic commented Sep 21, 2016

@staabm I tried that before (see the history on this PR) -- but this still requires rebasing the changes to a different branch first. Just changing it in the web interface will include all other commits to master in the PR as well ^^

@peterlebrun peterlebrun changed the base branch from master to PHP-7.0 September 21, 2016 16:20
@peterlebrun
Copy link
Author

Hi @nikic @adambaratz @staabm

Thank you for considering my PR. I have updated the base branch to PHP-7.0, please let me know if you need anything else.

Peter

@adambaratz
Copy link
Contributor

I merged this successfully via @nikic's method. Thanks all. There's a JS error on the PR tool. I'll close this once it's working again.

@php-pulls
Copy link

Comment on behalf of adambaratz at php.net:

Merged into PHP-7.0 and up.

@php-pulls php-pulls closed this Sep 21, 2016
@KalleZ
Copy link
Member

KalleZ commented Sep 21, 2016

@adambaratz if there is a js error then please report it at bugs.php.net :)

@adambaratz
Copy link
Contributor

Was nothing. Just had to clear cache...

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.

6 participants