From: lunter at interia dot pl Operating system: all PHP version: 5.1.0RC3 PHP Bug Type: Unknown/Other Function Bug description: include/require sugestion
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 bug report at http://bugs.php.net/?id=34930&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34930&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34930&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34930&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34930&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34930&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34930&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34930&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34930&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34930&r=support Expected behavior: http://bugs.php.net/fix.php?id=34930&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34930&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34930&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34930&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34930&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34930&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34930&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34930&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34930&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34930&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34930&r=mysqlcfg