import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-file / bug39367.php
blob9721f9b56191099ae181027b5f24b3779e20ad84
1 <?php
2 function test() {
3 unlink('/tmp/1link');
4 unlink('/tmp/1tmp');
5 unlink('/tmp/testfile1');
7 file_put_contents('/tmp/testfile1', 'ok');
8 symlink('/tmp/testfile1', '/tmp/1tmp');
9 rename('/tmp/1tmp', '/tmp/1link');
10 echo file_get_contents('/tmp/1link')."\n";
12 unlink('/tmp/1link');
13 clearstatcache(true);
15 echo file_get_contents('/tmp/1link')."\n";
17 unlink('/tmp/1link');
18 unlink('/tmp/1tmp');
19 unlink('/tmp/testfile1');
21 @test();