> User complains that maximum length of a line used by fscanf is too short
> (he has lines > 1600 chars).  Looking at file.h I agree (it's only 512).
> 
> The user requested two options:
> 
> 1) Add an optional length field.
>   No way to do that without breaking parameter list. :(
> 
> 2) Increase to a larger arbitrary number.
>   This simply has the problem that it may prove too short eventually as well.
> 
> Plus I came up with a third option:
> 
> 3) Create an .ini entry to specify the maximum length used.
>   I think this has the best overall return on it.
> 

The thing is that just feels kinda dirty (an ini option controlling how long a
line should be assumed for fscanf, but I agree there is no really good solution), 
unless of course it means changing the parameter order to fscanf().

-Sterling

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to