summaryrefslogtreecommitdiff
path: root/ext/curl/tests/curl_setopt_CURLOPT_READFUNCTION.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/curl/tests/curl_setopt_CURLOPT_READFUNCTION.phpt')
-rw-r--r--ext/curl/tests/curl_setopt_CURLOPT_READFUNCTION.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curl/tests/curl_setopt_CURLOPT_READFUNCTION.phpt b/ext/curl/tests/curl_setopt_CURLOPT_READFUNCTION.phpt
index 92c80d1732..32af88fb20 100644
--- a/ext/curl/tests/curl_setopt_CURLOPT_READFUNCTION.phpt
+++ b/ext/curl/tests/curl_setopt_CURLOPT_READFUNCTION.phpt
@@ -19,7 +19,7 @@ function custom_readfunction($oCurl, $hReadHandle, $iMaxOut)
return $sData;
}
-$sFileBase = dirname(__FILE__).DIRECTORY_SEPARATOR.'curl_opt_CURLOPT_READFUNCTION';
+$sFileBase = __DIR__.DIRECTORY_SEPARATOR.'curl_opt_CURLOPT_READFUNCTION';
$sReadFile = $sFileBase.'_in.tmp';
$sWriteFile = $sFileBase.'_out.tmp';
$sWriteUrl = 'file://'.$sWriteFile;
@@ -43,7 +43,7 @@ var_dump($sOutput);
===DONE===
--CLEAN--
<?php
-$sFileBase = dirname(__FILE__).DIRECTORY_SEPARATOR.'curl_opt_CURLOPT_READFUNCTION';
+$sFileBase = __DIR__.DIRECTORY_SEPARATOR.'curl_opt_CURLOPT_READFUNCTION';
$sReadFile = $sFileBase.'_in.tmp';
$sWriteFile = $sFileBase.'_out.tmp';
unlink($sReadFile);