ID: 44717 Updated by: [EMAIL PROTECTED] Reported By: pazpog at yahoo dot co dot uk -Status: Open +Status: Bogus Bug Type: Directory function related Operating System: XP SP2 PHP Version: 5.2.5 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. This is only available in PHP 5.3+ Previous Comments: ------------------------------------------------------------------------ [2008-04-14 14:48:06] pazpog at yahoo dot co dot uk Changed the Category (I chose the wrong one). ------------------------------------------------------------------------ [2008-04-14 14:44:32] pazpog at yahoo dot co dot uk Description: ------------ Magic constants do not work in CLI. It simply returns the name of the constant - For example, if the constant is called __DIR__, it would just return __DIR__ instead of the directory the script is in. Reproduce code: --------------- <?php echo(__DIR__); ?> Expected result: ---------------- I expected it to echo the directory the script is in. Eg; E:\phpHuman. Actual result: -------------- It echos __DIR__ (the name of the constant). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44717&edit=1
