summaryrefslogtreecommitdiff
path: root/ext/wddx
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wddx')
-rw-r--r--ext/wddx/tests/001-64bit.phpt2
-rw-r--r--ext/wddx/tests/001.phpt2
-rw-r--r--ext/wddx/tests/003.phpt2
-rw-r--r--ext/wddx/tests/bug75055.phpt2
4 files changed, 4 insertions, 4 deletions
diff --git a/ext/wddx/tests/001-64bit.phpt b/ext/wddx/tests/001-64bit.phpt
index 7869c48e1d..c0cd49c835 100644
--- a/ext/wddx/tests/001-64bit.phpt
+++ b/ext/wddx/tests/001-64bit.phpt
@@ -7,7 +7,7 @@ wddx deserialization test (64-bit)
precision=14
--FILE--
<?php
- $path = dirname(__FILE__);
+ $path = __DIR__;
var_dump(wddx_deserialize(file_get_contents("{$path}/wddx.xml")));
?>
--EXPECTF--
diff --git a/ext/wddx/tests/001.phpt b/ext/wddx/tests/001.phpt
index ebe3af60af..a38d7d12cb 100644
--- a/ext/wddx/tests/001.phpt
+++ b/ext/wddx/tests/001.phpt
@@ -7,7 +7,7 @@ wddx deserialization test (32-bit)
precision=14
--FILE--
<?php
- $path = dirname(__FILE__);
+ $path = __DIR__;
var_dump(wddx_deserialize(file_get_contents("{$path}/wddx.xml")));
?>
--EXPECTF--
diff --git a/ext/wddx/tests/003.phpt b/ext/wddx/tests/003.phpt
index 999d63724a..b9155b1ae1 100644
--- a/ext/wddx/tests/003.phpt
+++ b/ext/wddx/tests/003.phpt
@@ -6,7 +6,7 @@ wddx deserialize from ressource
precision=14
--FILE--
<?php
- $path = dirname(__FILE__);
+ $path = __DIR__;
$fp = fopen("php://temp", 'w+');
fputs($fp, "<wddxPacket version='1.0'><header><comment>TEST comment</comment></header><data><struct><var name='var1'><null/></var><var name='var2'><string>some string</string></var><var name='var3'><number>756</number></var><var name='var4'><boolean value='true'/></var></struct></data></wddxPacket>");
rewind($fp);
diff --git a/ext/wddx/tests/bug75055.phpt b/ext/wddx/tests/bug75055.phpt
index affad3d421..cd84c9b8fa 100644
--- a/ext/wddx/tests/bug75055.phpt
+++ b/ext/wddx/tests/bug75055.phpt
@@ -5,7 +5,7 @@ Bug #75055 Out-Of-Bounds Read in timelib_meridian()
--FILE--
<?php
-$file_str = dirname(__FILE__) . "/bug75055.wddx";
+$file_str = __DIR__ . "/bug75055.wddx";
$wddx_str = file_get_contents($file_str);
print strlen($wddx_str) . " bytes read.\n";