php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43060 Realpath issue with doesn't exist path
Submitted: 2007-10-21 13:31 UTC Modified: 2007-10-21 16:31 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: julien at duponchelle dot info Assigned:
Status: Closed Package: *General Issues
PHP Version: 5.2.4 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: julien at duponchelle dot info
New email:
PHP Version: OS:

 

 [2007-10-21 13:31 UTC] julien at duponchelle dot info
Description:
------------
With this script:
<?php
var_dump(realpath("//../tata/tutu"));
?>

On PHP 5.2.3 i got:
bool(false)

On PHP 5.2.4 i got:
string(10) "/tata/tutu"

Documentation say "realpath() returns FALSE on failure, e.g. if the file does not exist."


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-21 13:36 UTC] julien at duponchelle dot info
Improve bug summary
 [2007-10-21 15:28 UTC] iliaa@php.net
Works fine for me in latest CVS, do you have other settings like 
open_basedir/safe_mode or thread-safety enabled?
 [2007-10-21 15:37 UTC] julien at duponchelle dot info
No special settings.
 [2007-10-21 16:29 UTC] julien at duponchelle dot info
My admin say we use suhosin on this server... I think this the source of my problem.
 [2007-10-21 16:31 UTC] julien at duponchelle dot info
Sorry for disturbing you.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 04 21:00:01 2025 UTC