php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37902 include() and family do not use filesystem encoding
Submitted: 2006-06-23 15:58 UTC Modified: 2006-08-24 15:24 UTC
From: andrei@php.net Assigned: pollita (profile)
Status: Closed Package: Unicode Engine related
PHP Version: 6CVS-2006-06-23 (CVS) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andrei@php.net
New email:
PHP Version: OS:

 

 [2006-06-23 15:58 UTC] andrei@php.net
Description:
------------
It seems that fopen_for_include uses runtime encoding, not filesystem encoding.

Reproduce code:
---------------
php.ini
-------
unicode_semantics = on
unicode.output_encoding = utf-8
unicode.runtime_encoding = iso-8859-1
unicode.script_encoding = utf-8
unicode.filesystem_encoding = utf-8

f.php
-----
<?php include "caf?.php"; >

caf?.php (UTF-8 name)
---------------------
<?php echo "in caf?\n"; ?>


Expected result:
----------------
in caf?

Actual result:
--------------
Warning: include(caf?.php): failed to open stream: No such file or directory in /home/andrei/dev/php-src/f.php on line 1

Warning: include(): Failed opening 'caf?.php' for inclusion (include_path='.') in /home/andrei/dev/php-src/f.php on line 1


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-24 15:24 UTC] andrei@php.net
I think Sara has fixed this already.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Mar 11 06:01:29 2025 UTC