ID: 50371 Updated by: j...@php.net Reported By: max at kosyakov dot net Status: Feedback Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 5.2.11 New Comment:
Also, did you notice this note on the manual page http://php.net/realpath "5.3.0 Prior to this release realpath() would not fail on *BSD systems if only the last last path component did not exist. " Previous Comments: ------------------------------------------------------------------------ [2009-12-04 07:31:00] j...@php.net And what does this output: # ls -l /usr/home/kosyakov/asdfasdf ------------------------------------------------------------------------ [2009-12-04 07:27:12] max at kosyakov dot net Yes, it does return false: FreeBSD 6.1-RELEASE (GENERIC) #0: Sun May 7 04:32:43 UTC 2006 %php -r "var_dump(realpath('/non/existent'));" bool(false) % ------------------------------------------------------------------------ [2009-12-04 04:45:52] j...@php.net What does this return: # php -r 'var_dump(realpath("/non/existent"));' ------------------------------------------------------------------------ [2009-12-04 04:44:41] j...@php.net Must be some FreeBSD thing since I get false with both calls. ------------------------------------------------------------------------ [2009-12-03 23:01:22] carsten_sttgt at gmx dot de > %php -r '$test = "asdfasdf"; var_dump(realpath($test)); I guess | %php -r "var_dump(realpath('/non/existent'));" is returing false? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/50371 -- Edit this bug report at http://bugs.php.net/?id=50371&edit=1