Re: Error instead of returning false

From: Date: Wed, 08 May 2019 19:21:36 +0000
Subject: Re: Error instead of returning false
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-105647@lists.php.net to get a copy of this message
On Wed, 8 May 2019 at 08:41, Stephen Reay <php-lists@koalephant.com> wrote: > > Isn’t this exactly what SplFileObject / SplFileInfo::openFile is for? SplFileObject does not expose the underlying filehandle, so it can't be used with any of the other PHP functions that expect a file handle. It's not safe to expose the filehandle, as none of the SplFileObject code checks for the file handle still being valid. cheers Dan Ack

« previous php.internals (#105647) next »