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

From: Date: Sun, 27 Jul 2014 07:59:19 +0000
Subject: Bug #67690 [Opn]: __DIR__ does not work with eacute
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186828@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
 User updated by:    lingtalfi at gmail dot com
 Reported by:        lingtalfi at gmail dot com
 Summary:            __DIR__ does not work with eacute
 Status:             Open
 Type:               Bug
 Package:            Directory function related
 Operating System:   MacOSX 10.5.8
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

I'm using 

Apache/2.2.26 (Unix) PHP/5.5.8
Mac OsX 10.8.5


Previous Comments:
------------------------------------------------------------------------
[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


Thread (5 messages)

« previous php.bugs (#186828) next »