-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Generate class entries from stubs for com, standard, xmlreader, xmlwriter, xsl, zip, Zend #6706
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
Conversation
…iter, xsl, zip, Zend
Hm, the stub files for AssertionError and __PHP_Incomplete_Class feel a bit awkward... |
First, I was afraid that I'll get the unused function errors again if I put them in zend_builtin_function.stub.php and basic_basic_functions.stub.php, respectively. But I've just realized that the |
As you can see from the failing build, that won't work due to unused static functions. I think in this case it would make more sense to declare the classes inside basic_functions.c, as we also perform all function declarations there. |
I didn't notice this warning in my local build output :/
|
I gave up on |
@kocsismate The header file should contain something like |
/** @var string|null */ | ||
public $name; | ||
public $comment; |
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.
We should convert these to uninit typed props in a followup.
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.
Agreed! I'll soon create one for this and mysqli.
Actually, I wanted to ask you two slightly connected questions to this PR.
- Couldn't we declare the undeclared properties in ext/dom? (and I found another extension using dynamic properties when working on this PR)
- I want to backport the missing classes to the PHP-8.0 branch from this PR and the one for ext/spl. Should I include the stub file with the SPL exceptions as well, even though that file wouldn't be used at all...?
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.
Couldn't we declare the undeclared properties in ext/dom? (and I found another extension using dynamic properties when working on this PR)
Sounds reasonable.
I want to backport the missing classes to the PHP-8.0 branch from this PR and the one for ext/spl. Should I include the stub file with the SPL exceptions as well, even though that file wouldn't be used at all...?
Don't see a problem with that. Though TBH I'm no longer sure we need class declarations on PHP-8.0 at all.
No description provided.