1--TEST-- 2fopen() with relative path on a file in the script directory 3--FILE-- 4<?php 5 6$file = basename(__FILE__); 7 8$fd = fopen($file, "r", true); 9var_dump($fd); 10fclose($fd); 11 12?> 13--EXPECTF-- 14resource(%d) of type (stream) 15