summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/fopen_variation1.phpt
blob: 53f635b6ed71678229bb09984356c5105110e70e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
fopen() with relative path on a file in the script directory
--FILE--
<?php

$file = basename(__FILE__);

$fd = fopen($file, "r", true);
var_dump($fd);
fclose($fd);

?>
--EXPECTF--
resource(%d) of type (stream)