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

From: Date: Mon, 20 Nov 2006 19:08:14 +0000
Subject: Re: fgets()/fgetss() BC break in HEAD
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-26673@lists.php.net to get a copy of this message
On Tue, November 14, 2006 2:34 am, Stanislav Malyshev wrote: >> It seems utterly ridiculous to return maxlen-1. >> >> Whilst this is sure as hell a BC, it should work "properly". If I >> ask >> for 10, I want 10. I wouldn't have asked for 10 otherwise. Having to >> know the "magic" to get things to work is plainly bad magic. It should have been 10, but a zillion scripts are relying on it doing what it does. Changing something this fundamental, and simple, at anything less than a major release point is insane. Even at a major release, it seems like a rather pointless change -- It will only result in millions (literally) choosing not to adopt the new version. Renaming "maxlen" or whatever it is in the docs and variable name to something less clearly defined as "10 means 10" seems like a much better solution. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.internals (#26673) next »