Date: 05/08/01
- Next message: jbozza <email protected>: "[PHP-DEV] Bug #10733 Updated: configure --disable-short-tags doesn't disable short-tags"
- Previous message: konrad <email protected>: "[PHP-DEV] Bug #10734: Strange conversion string->numbers"
- Maybe in reply to: Andi Gutmans: "[PHP-DEV] 4.0.6"
- Next in thread: Andi Gutmans: "Re: Fw: [PHP-DEV] 4.0.6"
- Reply: Andi Gutmans: "Re: Fw: [PHP-DEV] 4.0.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
----- Original Message -----
From: "Boian Bonev" <boian <email protected>>
To: "Dave Jones" <JONESD <email protected>>
Sent: Tuesday, May 08, 2001 6:29 PM
Subject: Re: [PHP-DEV] 4.0.6
> hi,
>
> > And also line number don't get incremented if there are no line ends, so
> > all syntax errors are reported as being on line 1.
> > The issue might have never come up if the code used "r" mode for opens
> > rather that "rb", since the file are 'text' files. On platforms that
> > don't used embedded newline characters as the record delimiters, the
> > implementation of fread is responsible for mapping the underlying file
> > format to cannonical form (i.e. \n's delimiting lines).
>
> you are partially correct - if we have only 'native' files - yes this is
the
> case. but imagine tons of downloaded code, parts of it originating from
*nix
> others from windows, and parts of them edited so all the three possible
> combinations are used. perhapse you know that most editors convert line
> endings only for edited lines not for the whole file. now the task of
> correctly counting line numbers is not that easy. neighter file conversion
> is. of course some editors pretend to be that clever to interprete all the
> three formats - something like greedy eating \n\r|\n|\r in this order...
>
> b.
>
forgot to say that php must flawlessly interprete all the combinations
provided that it is a platform independant language and never rely on os
specific stuff - win php source must work on unix as unix php source on
windows...
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: jbozza <email protected>: "[PHP-DEV] Bug #10733 Updated: configure --disable-short-tags doesn't disable short-tags"
- Previous message: konrad <email protected>: "[PHP-DEV] Bug #10734: Strange conversion string->numbers"
- Maybe in reply to: Andi Gutmans: "[PHP-DEV] 4.0.6"
- Next in thread: Andi Gutmans: "Re: Fw: [PHP-DEV] 4.0.6"
- Reply: Andi Gutmans: "Re: Fw: [PHP-DEV] 4.0.6"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

