Bug #37672 [ReO->Csd]: Cannot start script from directory containing international characters.

From: Date: Mon, 08 Aug 2016 09:47:56 +0000
Subject: Bug #37672 [ReO->Csd]: Cannot start script from directory containing international characters.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203059@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=37672&edit=1

 ID:                 37672
 Updated by:         ab@php.net
 Reported by:        php-bugs at shad dot pp dot ru
 Summary:            Cannot start script from directory containing
                     international characters.
-Status:             Re-Opened
+Status:             Closed
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Windows Server 2003 SP2
 PHP Version:        5.2.14
-Assigned To:        
+Assigned To:        ab
 Block user comment: N
 Private report:     N

 New Comment:

Fixed in PHP 7.1. Please test it carefully and report issues in a new ticket.

Thanks.


Previous Comments:
------------------------------------------------------------------------
[2013-08-21 04:36:38] ku at digitaldolphins dot jp

I have posted my patch. It works fine for me!

Thanks

------------------------------------------------------------------------
[2013-08-21 02:25:56] ku at digitaldolphins dot jp

Hi.

I have same problem too!

It seems that php5apache2_2.dll assumes request_rec::filename as ANSI charset. 
However it will be UTF-8.

It'll need charset conversion: from UTF-8 to local ANSI codepage.

Check C:\php-sdk\php54dev\vc9\x86\php-5.4.18\sapi\apache2handler\sapi_apache2.c
---
static int php_handler(request_rec *r)
{
...
  zend_file_handle zfd;

  zfd.type = ZEND_HANDLE_FILENAME;
  zfd.filename = (char *) r->filename;
  zfd.free_filename = 0;
  zfd.opened_path = NULL;
...
---

What do you think about it?

Thanks.

------------------------------------------------------------------------
[2010-09-08 14:23:48] php-bugs at shad dot pp dot ru

Test

------------------------------------------------------------------------
[2010-09-08 14:23:21] php-bugs at shad dot pp dot ru

For some reason I cannot reopen this bug. I hope someone can do that.

------------------------------------------------------------------------
[2010-09-08 14:22:25] php-bugs at shad dot pp dot ru

Nothing changed since my first bug report. I updated details and reopened issue.

[Wed Sep 08 16:10:27 2010] [error] [client 193.105.104.4] PHP Fatal error:  Unknown: Failed opening
required
'D:/www/default/test/\xd0\xba\xd0\xb8\xd1\x80\xd0\xb8\xd0\xbb\xd0\xbb\xd0\xb8\xd1\x86\xd0\xb0/test.php'
(include_path='.;C:\\php5\\pear') in Unknown on line 0

I believe, this is a problem with apache2 handler. Looks like it doesn't understand/decode the
path that Apache is providing to it.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=37672


--
Edit this bug report at https://bugs.php.net/bug.php?id=37672&edit=1


Thread (16 messages)

« previous php.bugs (#203059) next »