Uh oh!
There was an error while loading. Please reload this page.
Convert resources to objects in ext/pgsql - #6791
Conversation
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
I removed some of these unnecessary comments because they annoyed me at some point
There was a problem hiding this comment.
This does make a lot of noise in the PR sadly :-/
There was a problem hiding this comment.
I agree that it was not a good idea to do this here. I can get rid of these changes If they make code review difficult
There was a problem hiding this comment.
Feel free to simply separately land a removal of all folder marks in pgsql (though I don't mind it being part of this change).
Girgias
left a comment
There was a problem hiding this comment.
Looks OK from a quick glance if persistent connections still work (as currently there is no plan nor deprecation getting rid of those)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nikic
commented
Mar 22, 2021
|
9c9bb86 to
45f55f7Comparekocsismate
commented
Mar 24, 2021
Now only ~12 tests fail and I also tried to implement the suggestionss in in c7a86a3 (notices doesn't yet work perfectly). |
Uh oh!
There was an error while loading. Please reload this page.
My latest commit (6931655) fixes all tests, finally! |
6931655 to
eb22b17Comparedbf23ba to
98c2c0dCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Feel free to simply separately land a removal of all folder marks in pgsql (though I don't mind it being part of this change).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kocsismate
commented
May 10, 2021
I addressed most of the review comments, however, currently many tests end up with a memory leak. The issue is with the default connection handling, so I'll continue chasing this problem. |
nikic
commented
May 10, 2021
I pushed a few changes that should fix the leaks. |
nikic
commented
May 10, 2021
Windows build failed with: Not really obvious to me why ... |
There was a problem hiding this comment.
| zend_argument_type_error(1, "must be of type PgSql when the connection is provided"); | |
| zend_argument_type_error(1, "must be of type PgSql\\Connection when the connection is provided"); |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The idea came up in php@c7a86a3
The idea came up in php@c7a86a3
kocsismate
commented
May 10, 2021
I had to force push because of a conflict in the readme, but only the last commit is new. |
kocsismate
commented
May 10, 2021
Did it when applying the commit! |
Per: - php/php-src#6791 - https://github.com/php/php-src/blob/a846547ed4bb67f00dc12bbfc529e9c992cbfd07/UPGRADING The pgsql functions now accept and return **resource objects** and not **resources**. As such, the return value of `get_resource_type()` varies, and technically, in PHP 8.1, we should not use `is_resource()`, but a typecheck instead. However, we still need to support pre-8.1 code as well. Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
No description provided.