> On 7 May 2019, at 22:15, Claude Pache <claude.pa...@gmail.com> wrote: > > If you do think that ideally an exception should be thrown here, it is better > to devise a new function—and, while you’re at it, a function that returns an > object of some definite class instead of a resource.
Isn’t this exactly what SplFileObject / SplFileInfo::openFile is for? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php