ID:               27823
 Comment by:       chiller at orchidsuites dot net
 Reported By:      roy at pine dot nl
 Status:           Open
 Bug Type:         Scripting Engine problem
 Operating System: Solaris 7
 PHP Version:      4CVS-2004-04-29
 New Comment:

Same problem.  __FILE__ returns './filename' instead of
'/path/to/filename'.

MacOS X Server 10.3.6 / PHP 4.3.9

It seems this bug keeps getting reintroduced.  IMO __FILE__ should
return the full path.


Previous Comments:
------------------------------------------------------------------------

[2004-04-21 12:12:23] roy at pine dot nl

Alright we upgraded our production machine to
http://snaps.php.net/php4-STABLE-latest.tar.gz
 (PHP Version 4.3.7-dev) in order to test the problem and it is not
working.

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

[2004-04-13 12:32:30] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

[2004-04-13 04:01:46] roy at pine dot nl

It also works with the 4.3.5 CLI binary.

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

[2004-04-09 08:46:59] roy at pine dot nl

It seems to work with the CLI binary i compiled from
http://snaps.php.net/php5-latest.tar.gz .

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

[2004-04-01 04:03:28] roy at pine dot nl

Description:
------------
The __FILE__ bug under Solaris (http://bugs.php.net/bug.php?id=13936)
is still there.
I tried the same script setup under FreeBSD and PHP 4.3.4 where it
works like intended.

Reproduce code:
---------------
--- test.php
<?php
print __FILE__;
print "<p>";
require("test2.php");
?>

--- test2.php
<?php
print __FILE__;
?>


Expected result:
----------------
/home/whatever/www/test.php

/home/whatever/www/test2.php

Actual result:
--------------
/home/whatever/www/test.php

./test2.php


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


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

Reply via email to