Bug #67690 [Opn->Fbk]: __DIR__ does not work with eacute

From: Date: Mon, 28 Jul 2014 03:17:36 +0000
Subject: Bug #67690 [Opn->Fbk]: __DIR__ does not work with eacute
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186831@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67690&edit=1 ID: 67690 Updated by: yohgaki@php.net Reported by: lingtalfi at gmail dot com Summary: __DIR__ does not work with eacute -Status: Open +Status: Feedback Type: Bug Package: Directory function related Operating System: MacOSX 10.5.8 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Sounds like encoding/normalization issue. What's the content of $a and $b? i.e. var_dump(bin2hex($a), bin2hex($b)); Previous Comments: ------------------------------------------------------------------------ [2014-07-27 07:59:18] lingtalfi at gmail dot com I'm using Apache/2.2.26 (Unix) PHP/5.5.8 Mac OsX 10.8.5 ------------------------------------------------------------------------ [2014-07-27 07:57:13] lingtalfi at gmail dot com Description: ------------ Let create 2 files in a folder with name "dir": - x.php - x2.php Let put the following content in x.php: require_once 'x2.php'; $a = __DIR__; var_dump($a === $b); and the following content in x2.php: $b = __DIR__; Let's open x.php in a browser, it outputs true. Let's now repeat the same steps but within a folder named "diré". The output is false (in my case). ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67690&edit=1

« previous php.bugs (#186831) next »