Re: fgets()/fgetss() BC break in HEAD

From: Date: Wed, 15 Nov 2006 21:04:56 +0000
Subject: Re: fgets()/fgetss() BC break in HEAD
Groups: php.internals 
Request: Send a blank email to internals+get-26626@lists.php.net to get a copy of this message
ceo@l-i-e.com wrote:
On Tue, November 14, 2006 2:59 pm, Sara Golemon wrote:
keeping. I'll lay money that NOONE is relying on this, and I challenge any of you to prove me wrong on that count.
Errrr. You may want to re-think that bet... Surely somebody out there has: <?php $field_X = fgets($file, 10); //get the next 9 bytes $field_Y = fgets($file, 4); //get the next 3 bytes ?> Sorry, I meant to say "Noone with an IQ higher than twelve is relying on this."
Or change the docs and the variable name to something other than maxchars is a perfect solution. :-) Yes, and that's what I said both in this thread and on IRC before the thread started.
-Sara

« previous php.internals (#26626) next »