Re: Behaviour of put_file_contents()?

From: Date: Sat, 28 Jun 2003 08:18:48 +0000
Subject: Re: Behaviour of put_file_contents()?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-2927@lists.php.net to get a copy of this message
On Sat, 28 Jun 2003, Paul Hudson wrote: > All, > > The manual currently doesn't specify what the function file_put_contents > returns beyond just "int". The code prototype says string, and the function > appears to return a boolean rather than any integer (at least in the latest > CVS). Which of the three should it be? > > I was /expecting/ it to return an integer of the number of bytes written, as > in the included (albeit very simplistic!) patch. Applied, thanks! Derick -- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------

« previous php.internals (#2927) next »