Test: /tests/security/bug53226.phpt - Version 5.3.9-dev        

Bug #53226 file_exists fails on big filenames
Submitted: 2010-11-02 08:44:36 Modified: 2010-11-05 06:28:10
From: daedal13 Assigned: aharvey
Status: Closed Package: Filesystem function related
PHP Version: 5.2.14 OS: Linux

There are 2 different diffs reported by users for this test.

Count Diff
2 (67%)
001+ Warning: mkdir(): File exists in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 64
002+ bool(false)
003+
004+ Warning: mkdir(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/ok) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 65
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/bad) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 66
001- bool(true)
002- bool(true)
003- bool(true)
004- bool(true)
007- Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (%d): %s in %s on line %d
010+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/ok/ok.txt) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 67
011+
012+ Warning: file_put_contents(/home/lester/Development/PHP5_3/test/ok/ok.txt): failed to open stream: Operation not permitted in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 67
013+
014+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/lester/Development/PHP5_3/test/bad/bad.txt) is not within the allowed path(s): (.) in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 68
015+
016+ Warning: file_put_contents(/home/lester/Development/PHP5_3/test/bad/bad.txt): failed to open stream: Operation not permitted in /home/lester/Development/PHP5_3/tests/security/open_basedir.inc on line 68
017+
018+ Warning: file_exists(): open_basedir restriction in effect. File(./test/ok/ok.txt) is not within the allowed path(s): (.) in %s/bug53226.php on line 5
020+
021+ Warning: file_exists(): open_basedir restriction in effect. File(./test/foo) is not within the allowed path(s): (.) in %s/bug53226.php on line 6
022+ bool(false)
023+
024+ Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (4096): ./test/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx in %s/bug53226.php on line 9
025+ bool(false)
1 (33%)
001+ Warning: mkdir(): File exists in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 64
002+ bool(false)
003+
004+ Warning: mkdir(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/ok) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 65
005+ bool(false)
006+
007+ Warning: mkdir(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/bad) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 66
001- bool(true)
002- bool(true)
003- bool(true)
004- bool(true)
007- Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (%d): %s in %s on line %d
010+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/ok/ok.txt) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 67
011+
012+ Warning: file_put_contents(/home/braxton/src/php/php5.3-201110280630/test/ok/ok.txt): failed to open stream: Operation not permitted in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 67
013+
014+ Warning: file_put_contents(): open_basedir restriction in effect. File(/home/braxton/src/php/php5.3-201110280630/test/bad/bad.txt) is not within the allowed path(s): (.) in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 68
015+
016+ Warning: file_put_contents(/home/braxton/src/php/php5.3-201110280630/test/bad/bad.txt): failed to open stream: Operation not permitted in /home/braxton/src/php/php5.3-201110280630/tests/security/open_basedir.inc on line 68
017+
018+ Warning: file_exists(): open_basedir restriction in effect. File(./test/ok/ok.txt) is not within the allowed path(s): (.) in %s/bug53226.php on line 5
020+
021+ Warning: file_exists(): open_basedir restriction in effect. File(./test/foo) is not within the allowed path(s): (.) in %s/bug53226.php on line 6
022+ bool(false)
023+
024+ Warning: file_exists(): File name is longer than the maximum allowed path length on this platform (4096): ./test/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx in %s/bug53226.php on line 9
025+ bool(false)