#34930 [WFx]: include/require sugestion
| From: | derick@php.net | Date: | Thu, 20 Oct 2005 12:45:42 +0000 |
| Subject: | #34930 [WFx]: include/require sugestion | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-86806@lists.php.net to get a copy of this message | ||
ID: 34930
Updated by: derick@php.net
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:
This will be addressed in PHP 6 only.
Previous Comments:
------------------------------------------------------------------------
[2005-10-20 14:22:52] lunter at interia dot pl
Removing BOM by myself is very uncomfortable, becouse text editor add
it every time when I edit PHP file.
------------------------------------------------------------------------
[2005-10-20 14:19:14] tony2001@php.net
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