Is there an chance that you could put BSD realpath source and compile it in PHP. This should solve the fopen and safe_mode bug on some systems (unixware, TRU64UNIXX) whe realpath doesn'tt behave the way PHP expects.
If you decide to make a patch for this, then make sure you take the FreeBSD 4.8-STABLE branch. The re-entrant version of BSD realpath has had a bug for some time and this is only fixed in 4.8-STABLE and 5.x with __FreeBSD_version 500110.
See: http://lists.freebsd.org/mailman/htdig/freebsd-stable/2003-May/001203.html
for details.
With kind regards,
Melvyn Sopacua <?php include("not_reflecting_employers_views.txt"); ?>
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php