Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[VarDumper] Add casters for object-converted resources#59035
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
13e4077
to1ff8865
CompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
tedious topic, thanks for working on it
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.
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.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
7096471
to24c00c5
CompareUh oh!
There was an error while loading.Please reload this page.
ed8fdf2
tod382421
CompareRevamped the PR, so most things are still in ResourceCaster now. The regression in PHP has been reported tophp/php-src#16990, and most casters now "simply" map infos to |
9830222
to8ec4800
CompareUh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
@internal since 7.3
👍
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.
34d936d
tod0b95fc
CompareMarked all casters as internal and added |
Uh oh!
There was an error while loading.Please reload this page.
5cf62d8
to27a573b
CompareUh oh!
There was an error while loading.Please reload this page.
4952bc6
to7ea55ce
Compare7ea55ce
toafbb31e
CompareSolved by silencing |
ec86ba0
to9d65675
CompareThe |
This PR was merged into the 6.4 branch.Discussion----------Add CI job for PHP 8.5| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | no| New feature? | no| Deprecations? | no| Issues | -| License | MITEnables PHP 8.5 nightlies on the CI.What motivated this early addition is the continuous effort of converting resources to actual classes. PHP 8.5 already embeds features likehttps://wiki.php.net/rfc/directory-opaque-object, which could already be handled in PRs such as#59035.Also we'll be able to fix future deprecations as soon as they appear during the next year.Commits-------15d56bb Add an experimental CI job for PHP 8.5
9d65675
to94aa998
Compare{ | ||
if (\PHP_VERSION_ID < 80402 && !\is_resource($dba)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The fix was shipped with PHP 8.4.2.
392eb5a
toece56db
CompareUh 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.
public static function castGd(\GdImage $gd, array $a, Stub $stub, bool $isNested): array | ||
{ | ||
$a['size'] = imagesx($gd).'x'.imagesy($gd); | ||
$a['trueColor'] = imageistruecolor($gd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
don't these miss the virtual prefix?
alexandre-dauboisJan 7, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Virtual prefixes weren't present before the refactoring, but I'm fine adding them, it makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
they weren't present because resource's properties are always virtual
now that we deal with objects, we have to make the virtual explicitly
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
48619eb
to8c99b6a
Compare8c99b6a
to7be6483
CompareThank you@alexandre-daubois. |
c98cfb6
intosymfony:7.3Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
This PR makes up for the backlog of resources transformed into objects in the latest versions of PHP.
✅ Support added (or already existing with an update in
AbstractCloner
):CurlMultiHandle
:no information to gatherOpenSSLCertificateSigningRequest
OpenSSLAsymmetricKey
Sqlite3Result
Sockets
(to rebase on[VarDumper] Add caster for Socket instances #59026)PgSql\Lob
PgSql\Connection
PgSql\Result
Odbc\Connection
Odbc\Result
Soap\Url
Soap\Sdl