#34930 [Opn->WFx]: include/require sugestion

From: Date: Thu, 20 Oct 2005 12:19:15 +0000
Subject: #34930 [Opn->WFx]: include/require sugestion
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-86804@lists.php.net to get a copy of this message
ID: 34930 Updated by: tony2001@php.net Reported By: lunter at interia dot pl -Status: Open +Status: Wont fix Bug Type: Unknown/Other Function Operating System: all PHP Version: 5.1.0RC3 New Comment: Remove BOM by yourself. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#86804) next »