mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
15 lines
220 B
PHP
15 lines
220 B
PHP
--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)
|