-
Notifications
You must be signed in to change notification settings - Fork 724
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
Unreferenced Class names #3667
Comments
Maybe we should explicitly state that these examples are for understanding purposes only, and not actually meant to be executed. Perhaps we should even mark them ("machine readable"), considering that at some point in the future we may want to add the possibility to actually run examples from the online manual. |
Dear Mr Becker,
Thank you or your prompt reply.
But I have still one doubt.
Since there is no line in the example program that 'requires' a certain php file to be included, I thought that perhaps this may require certain settings in the php configuration file to always preload a number of files that contain class definitions, and that that was the reason for this not showing up in the example.
The problem is that my AI copilot in Edge at first also thought that it was not necessary to include 'require' statements, because it probably get its wisdom from these php manuals
Anyway, thanks again for your prompt reply
Regards,
Wijnand Beke
From: "Christoph M. Becker" ***@***.***>
To: "php/doc-en" ***@***.***>
Cc: "wijnand beke" ***@***.***>, "Author" ***@***.***>
Sent: Wednesday, 21 August, 2024 13:54:48
Subject: Re: [php/doc-en] Unreferenced Class names (Issue #3667)
Maybe we should explicitly state that these examples are for understanding purposes only, and not actually meant to be executed. Perhaps we should even mark them ("machine readable"), considering that at some point in the future we may want to add the possibility to actually run examples from the online manual.
—
Reply to this email directly, [ #3667 (comment) | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/ALJHFHNUXYICZB2SVYMDJCDZSRWXRAVCNFSM6AAAAABM3JMHD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRG43DEOBVHA | unsubscribe ] .
You are receiving this because you authored the thread. Message ID: <php/doc-en/issues/3667/2301762858 @ github . com>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From manual page: https://php.net/language.namespaces.importing
---The examples shown do not work unless the php file that contains the references is 'required' is also loaded. Why is there no mention of this? Just running the examples always gives me "Fatal error: Uncaught Error: Class 'My\Own\Classname' not found in..... on line nnn
Regards, Winand Beke
The text was updated successfully, but these errors were encountered: