Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:2927 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48152 invoked from network); 28 Jun 2003 08:18:53 -0000 Received: from unknown (HELO jdi.jdimedia.nl) (212.204.192.51) by pb1.pair.com with SMTP; 28 Jun 2003 08:18:53 -0000 Received: from jdi.jdimedia.nl (jdi.jdimedia.nl [212.204.192.51]) by jdi.jdimedia.nl (8.12.4/8.12.4) with ESMTP id h5S8Im92025637; Sat, 28 Jun 2003 10:18:52 +0200 Date: Sat, 28 Jun 2003 10:18:48 +0200 (CEST) X-X-Sender: derick@jdi.jdimedia.nl To: Paul Hudson cc: internals@lists.php.net In-Reply-To: <200306280151.55639.hudzilla@php.net> Message-ID: References: <200306280151.55639.hudzilla@php.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Behaviour of put_file_contents()? From: derick@php.net (Derick Rethans) 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/ -------------------------------------------------------------------------