On 22 בפבר׳ 2015, at 02:07, François Laupretre <franc...@php.net> wrote:
>> De : Lester Caine [mailto:les...@lsces.co.uk] >> >> Fixed length fields may well be a data source so having to strip them >> before using them just seems a backward step. The basic C library simply >> strips the white space so are we looking at using an alternative? > > I guess you got it wrong : we'll ignore leading and trailing blanks, as well > as leading 0s. We say we restrict because, where we accepted *every* trailing > chars, we now only accept blanks. So fixed length fields will work as before. Actually the Coercive STH RFC currently takes the position that leading or trailing spaces will not be accepted. In general, the idea is to support the conversions which are likely to be right and safe in the vast majority of cases, and if there's any doubt - reject it. It's of course up for discussion, but it's that concept that I believe can bridge the gap between proponents of strict and proponents of dynamic typing. Thanks, Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php