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

From: Date: Mon, 20 Nov 2006 19:21:17 +0000
Subject: Re: fgets()/fgetss() BC break in HEAD
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-26677@lists.php.net to get a copy of this message
On Wed, November 15, 2006 3:04 pm, Sara Golemon wrote: >> 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." While I don't know the IQ chart well, nor its applicability to this discussion, it would seem that there are more than a few scripts "out there" that relied on the documented behaviour... I don't really care what a person's IQ is -- I've seen some horribly designed, written, and executed scripts that did some pretty nifty and amazing and creative things. I believe that one of PHP's strengths is that almost anybody can latch onto it and start using it, whether they have any idea how to work it properly or not. Obviously, this has caused problems in the past, and will cause problems in the future -- But I think the problems are worth it, as it has also cause a wealth of community, of users, of creative [mis-]applications of PHP that is sorely lacking in some other "less fun" languages. If you want to have an IQ-filter before a user can play with a language, send them off to use C++ or something. :-) -- 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 (#26677) next »