PHP 4.0 Bug #7161: __FILE__ now generates \ instead of /
| From: | danielc at analysisandsolutions dot com | Date: | Thu, 12 Oct 2000 15:30:38 +0000 |
| Subject: | PHP 4.0 Bug #7161: __FILE__ now generates \ instead of / | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34804@lists.php.net to get a copy of this message | ||
From: danielc@analysisandsolutions.com
Operating system: NT 4.0 SP 6a
PHP version: 4.0.3
PHP Bug Type: *General Issues
Bug description: __FILE__ now generates \ instead of /
PHP has changed the way it displays directory separators in a file's path when calling the
__FILE__ constant.
PHP 3.0.11: g:\webroot/ideasphp/bug403-filepath.htm
PHP 4.0.3: g:\webroot\ideasphp\bug403-filepath.html
This inconsistency is causing problems my scripts which do an explode("/", __FILE__).
Guess I'll now have to swich to split("[\/]", __FILE__); for now. But doing so
changes the first array element from "g:\webroot" to "g:", which requires
further code rewrites.
--
Edit Bug report at: http://bugs.php.net/?id=7161&edit=1