summaryrefslogtreecommitdiff
path: root/ext/sysvshm/tests
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-06-25 17:37:55 +0000
committerAntony Dovgal <tony2001@php.net>2007-06-25 17:37:55 +0000
commit386cf7889f4b6e4ed3fbaa306ea5b0ede090280e (patch)
treed42bc6c8f8ab90a21a2bf6a43aced13005161b03 /ext/sysvshm/tests
parentbe9e02fd7487e26a202dc26ce850b7f1359096ed (diff)
downloadphp-git-386cf7889f4b6e4ed3fbaa306ea5b0ede090280e.tar.gz
MFH
Diffstat (limited to 'ext/sysvshm/tests')
-rw-r--r--ext/sysvshm/tests/003.phpt10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/sysvshm/tests/003.phpt b/ext/sysvshm/tests/003.phpt
index 467e46a07e..0e8b0a5522 100644
--- a/ext/sysvshm/tests/003.phpt
+++ b/ext/sysvshm/tests/003.phpt
@@ -5,7 +5,7 @@ shm_detach() tests
--FILE--
<?php
-$key = ftok(__FILE__, 'q');
+$key = ftok(dirname(__FILE__)."/003.phpt", 'q');
var_dump(shm_detach());
var_dump(shm_detach(1,1));
@@ -22,6 +22,14 @@ var_dump(shm_detach(-1));
echo "Done\n";
?>
+--CLEAN--
+<?php
+
+$key = ftok(dirname(__FILE__)."/003.phpt", 'q');
+$s = shm_attach($key);
+shm_remove($s);
+
+?>
--EXPECTF--
Warning: Wrong parameter count for shm_detach() in %s on line %d
NULL