ID: 34930 User updated by: lunter at interia dot pl Reported By: lunter at interia dot pl Status: Wont fix Bug Type: Unknown/Other Function Operating System: all PHP Version: 5.1.0RC3 New Comment:
Removing BOM by myself is very uncomfortable, becouse text editor add it every time when I edit PHP file. Previous Comments: ------------------------------------------------------------------------ [2005-10-20 14:19:14] [EMAIL PROTECTED] Remove BOM by yourself. ------------------------------------------------------------------------ [2005-10-20 14:14:34] lunter at interia dot pl Description: ------------ PHP 5.1 suggestion: include ( string filename ) include_once ( string filename ) require ( string filename ) require_once( string filename ) If you include/require file codding with UTF-8, you include/require to inside output data chr(239).chr(187).chr(191) (3-byte UFT-8 header from incluging/requiring file). It is no good. It will be good to add two paramerters: include ( string filename, int start [, int length] ) include_once ( string filename, int start [, int length] ) require ( string filename, int start [, int length] ) require_once( string filename, int start [, int length] ) expamle for UTF-8: include ( 'file-utf-8.php', 3 ) include_once ( 'file-utf-8.php', 3 ) require ( 'file-utf-8.php', 3 ) require_once( 'file-utf-8.php', 3 ) Reproduce code: --------------- Read description. Expected result: ---------------- Read description. Actual result: -------------- Read description. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34930&edit=1