Skip to content

Generate ext/pdo methodsynopses based on stubs #494

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

Merged
merged 8 commits into from
May 6, 2021

Conversation

kocsismate
Copy link
Member

No description provided.

@kocsismate kocsismate force-pushed the pdo-stubs branch 2 times, most recently from 1dc3cfa to b061511 Compare May 4, 2021 10:17
Copy link
Member

@kamil-tekiela kamil-tekiela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ok to me now. I still have a feeling we missed something. @cmb69 What's your opinion?

@cmb69
Copy link
Member

cmb69 commented May 6, 2021

From a quick look, this looks okay. Of course, there is the issue that some of these methods may not return false on failure for ERRMODE_EXCEPTION, but I don't think it's worth to explicitly document that (IMHO, letting clients choose how issues are reported is a bad idea in the first place).

@kamil-tekiela
Copy link
Member

@cmb69 Yeah, I noticed that too, but I think we can make a separate PR for that. The return values will have to be adjusted for the new signatures.

@kocsismate kocsismate merged commit c9c1581 into php:master May 6, 2021
@kocsismate kocsismate deleted the pdo-stubs branch May 6, 2021 12:50
mumumu added a commit to php/doc-ja that referenced this pull request May 6, 2021
Comment on lines +121 to +131
<varlistentry xml:id="pdo.constants.fetch-default">
<term>
<constant>PDO::FETCH_DEFAULT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Specifies that the default fetch mode shall be used.
</simpara>
</listitem>
</varlistentry>
Copy link

@jonaslinn jonaslinn May 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, just stumbled over this constant. As nice as it would be, it does not exist (8.0.6). Or is this planned?
Fatal error: Uncaught Error: Undefined constant PDO::FETCH_DEFAULT

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We documented it a bit prematurely... since the constant has just been added by php/php-src#6937, it's going to be available in the next patch release

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add that info ("Available as of PHP 8.0.7.")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Submitted: #597 Although I'm wondering if this information should be added to the usages of the constant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants