summaryrefslogtreecommitdiff
path: root/ext/fileinfo/tests/bug61964.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fileinfo/tests/bug61964.phpt')
-rw-r--r--ext/fileinfo/tests/bug61964.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fileinfo/tests/bug61964.phpt b/ext/fileinfo/tests/bug61964.phpt
index 03f728721a..d6782a2072 100644
--- a/ext/fileinfo/tests/bug61964.phpt
+++ b/ext/fileinfo/tests/bug61964.phpt
@@ -1,11 +1,11 @@
--TEST--
Bug #61964 (finfo_open with directory cause invalid free)
--SKIPIF--
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+<?php require_once(__DIR__ . '/skipif.inc'); ?>
--FILE--
<?php
-$magic_file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'magic';
+$magic_file = __DIR__ . DIRECTORY_SEPARATOR . 'magic';
$ret = @finfo_open(FILEINFO_NONE, $magic_file . ".non-exits");
var_dump($ret);