Re: Not autoloading functions
| From: | Niklas Keller | Date: | Sat, 28 Jan 2017 20:27:34 +0000 |
| Subject: | Re: Not autoloading functions | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-98010@lists.php.net to get a copy of this message | ||
>
> I'm sorry, it's unacceptable for who? Only for not defined function it
> would be called. If I call the same function a thousand times, the autoload
> will be attempted just the first time, and if it doesn't work then the
> script would die, exactly like classes. Any project I know that uses
> functions define them one per file, and each file is required one by one.
>
Our observations are pretty different. I don't know any projects that use
one function per file. I usually see a functions.php per namespace.
Regards, Niklas