For what it's worth, I just installed 4.3.3 on my Win2K machine and the script works fine. I'm not using header(), I'm using echo():
<?php
echo "<pre>\n";
echo "\$_SERVER['PHP_SELF'] is: {$_SERVER['PHP_SELF']}\n";
echo "dirname(\$_SERVER['PHP_SELF']) is: ";
echo dirname($_SERVER['PHP_SELF']);
echo "\n";
echo "</pre>\n";
?>
My output on PHP versions 4.3.1, 4.3.2, and 4.3.3 are all the same:
$_SERVER['PHP_SELF'] is: /~phptest/dirname.php
dirname($_SERVER['PHP_SELF']) is: /~phptest
Take care,
Nik
http://www.bigaction.org/