PHP 4.0 Bug #9592 Updated: print __FILE__ doesn't return full path when using include_once

From: Date: Mon, 12 Mar 2001 15:56:16 +0000
Subject: PHP 4.0 Bug #9592 Updated: print __FILE__ doesn't return full path when using include_once
Groups: php.dev 
Request: Send a blank email to php-dev+get-48741@lists.php.net to get a copy of this message
ID: 9592 Updated by: andi Reported By: vince@mha.ca Old-Status: Open Status: Closed Bug Type: Unknown/Other Function Assigned To: Comments: Should be fixed in latest CVS. Previous Comments: --------------------------------------------------------------------------- [2001-03-06 20:27:33] vince@mha.ca When doing "print(__FILE__);" it only echo's the file name not the full path when the file is included with include_once or require_once. I don't know if this is a bug or not, but my programming staff seems to think its a bug. Example: # php -v 4.0.4pl1 # grep -C php test.* test.inc:<?php print (__FILE__."n"); ?> -- test.php:<?php include_once("test.inc"); ?> # php -q test.php /root/test.inc # grep -C php test.* test.inc:<?php print (__FILE__."n"); ?> -- test.php:<?php include_once("test.inc"); ?> # php -q test.php test.inc # --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9592&edit=2

« previous php.dev (#48741) next »