|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-08-14 19:17 UTC] kalowsky@php.net
[2002-08-14 22:19 UTC] duke at mastre dot com
[2002-08-14 22:28 UTC] kalowsky@php.net
[2002-08-15 11:00 UTC] duke at mastre dot com
[2002-08-15 11:02 UTC] duke at mastre dot com
[2002-09-06 14:18 UTC] duke at mastre dot com
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 19:00:02 2025 UTC |
Apache: 2.0.40 PHP: php4-STABLE-200208140900 not much else Why am I running a snapshot? Because cookies are [still] broken in 4.2.2 when running with Apache2, and I need to run Apache2. Problem: any/most filesystem functions do not know what the current directory is. This is a big problem, as it's broken 85% of my scripts (also totally breaks Smarty). Reproduce: $ cd /var/www/html/test $ cat test.php <?php echo('current working directory: ' . getcwd() . '<br />'); echo('w/o getcwd(): ' . (file_exists('test.php') ? 'true' : 'false') . '<br />'); echo('with getcwd() . /: ' . (file_exists(getcwd() . '/' . 'test.php') ? 'true' : 'false')); ?> http://somehost/test/test.php outputs this: current working directory: /var/www/html/test w/o getcwd(): false with getcwd() . /: true On 4.2.2 (rel) / 1.3.26 it correctly outputs: current working directory: /var/www/html/test w/o getcwd(): true with getcwd() . /: true Fix: yes, please ;)