#37902 [Asn->Csd]: include() and family do not use filesystem encoding

From: Date: Thu, 24 Aug 2006 15:24:00 +0000
Subject: #37902 [Asn->Csd]: include() and family do not use filesystem encoding
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-101286@lists.php.net to get a copy of this message
ID: 37902 Updated by: andrei@php.net Reported By: andrei@php.net -Status: Assigned +Status: Closed Bug Type: Unicode Engine related PHP Version: 6CVS-2006-06-23 (CVS) Assigned To: pollita New Comment: I think Sara has fixed this already. Previous Comments: ------------------------------------------------------------------------ [2006-06-23 15:58:56] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37902&edit=1

« previous php.bugs (#101286) next »