note 106663 added to language.constants.predefined

From: Date: Fri, 25 Nov 2011 15:55:59 +0000
Subject: note 106663 added to language.constants.predefined
Groups: php.notes 
Request: Send a blank email to php-notes+get-184676@lists.php.net to get a copy of this message
Please note, the __DIR__ pre-5.3.0 implementations below (jrivero24, stefan) aren't working if you have more than one file. Constants cannot be re-defined, therefore in those cases the __DIR__ would show the file where it was first defined and not the actual file. Just as chris said, there is no way to have custom implementation for __DIR__ in versions prior to 5.3.0 ---- Server IP: 69.147.83.197 Probable Submitter: 83.244.232.180 ---- Manual Page -- http://www.php.net/manual/en/language.constants.predefined.php Edit -- https://master.php.net/note/edit/106663 Del: integrated -- https://master.php.net/note/delete/106663/integrated Del: useless -- https://master.php.net/note/delete/106663/useless Del: bad code -- https://master.php.net/note/delete/106663/bad+code Del: spam -- https://master.php.net/note/delete/106663/spam Del: non-english -- https://master.php.net/note/delete/106663/non-english Del: in docs -- https://master.php.net/note/delete/106663/in+docs Del: other reasons-- https://master.php.net/note/delete/106663 Reject -- https://master.php.net/note/reject/106663 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184676) next »