Re: Problems with writing a stream wrapper to regular fopen/close functions...

From: Date: Tue, 31 Aug 2004 13:23:21 +0000
Subject: Re: Problems with writing a stream wrapper to regular fopen/close functions...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195273@lists.php.net to get a copy of this message
From: "Curt Zirzow" <php-general@zirzow.dyndns.org>
change return to: return ($this->fp? true: false); technically, internally the function is treated as function &stream_open(...) and will convert the value to a boolean value as you were experiencing.
Dammit... I knew that whole "this method should return TRUE or FALSE" would come back to bite me on the ass... Thanks for the tip, it works now, of course. ---John Holmes...

« previous php.general (#195273) next »