#27823 [NEW]: __FILE__ still not working properly in includes under Solaris

From: Date: Thu, 01 Apr 2004 09:03:28 +0000
Subject: #27823 [NEW]: __FILE__ still not working properly in includes under Solaris
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57305@lists.php.net to get a copy of this message
From:             roy at pine dot nl
Operating system: Solaris 7
PHP version:      4.3.5
PHP Bug Type:     Variables related
Bug description:  __FILE__ still not working properly in includes under Solaris

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 bug report at http://bugs.php.net/?id=27823&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27823&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27823&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27823&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27823&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27823&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27823&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27823&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27823&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27823&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27823&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27823&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27823&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27823&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27823&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27823&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27823&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27823&r=float


Thread (18 messages)

« previous php.bugs (#57305) next »