php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34464 require/include problem with loading native .php in UTF8 encoding
Submitted: 2005-09-11 17:13 UTC Modified: 2005-09-11 18:02 UTC
Votes:11
Avg. Score:4.5 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:3 (33.3%)
Same OS:4 (44.4%)
From: michal dot vrchota at seznam dot cz Assigned:
Status: Wont fix Package: Directory function related
PHP Version: 5.0.5 OS: -
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
1 + 26 = ?
Subscribe to this entry?

 
 [2005-09-11 17:13 UTC] michal dot vrchota at seznam dot cz
Description:
------------
I store "define() dictionary" in .php in native UTF8 encoding
(first 4 bytes represent UTF8 encoding - PHP dont recognize them)

When I use include/include_once/require/require_once

There is a E_WARNING that output already started

I think PHP should be smarter :)

Reproduce code:
---------------
// fr.php is in native utf-8
require_once("fr.php");

Actual result:
--------------
Warning: Cannot modify header information - headers already sent by (output started at d:\wwwroot\hotel4you\html\admin\lang\fr.php:1) in d:\wwwroot\hotel4you\html\admin\index.php on line 61

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-11 18:02 UTC] derick@php.net
This wil be fixed for PHP 6 (and already is).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC