summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_strerror.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/tests/socket_strerror.phpt')
-rw-r--r--ext/sockets/tests/socket_strerror.phpt6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/sockets/tests/socket_strerror.phpt b/ext/sockets/tests/socket_strerror.phpt
index 52e7a0a48..7985fadba 100644
--- a/ext/sockets/tests/socket_strerror.phpt
+++ b/ext/sockets/tests/socket_strerror.phpt
@@ -5,11 +5,11 @@ Florian Anderiasch
fa@php.net
--SKIPIF--
<?php
- if (!extension_loaded('sockets')) {
+ if (!extension_loaded('sockets') || !function_exists('socket_strerror')) {
die('skip sockets extension not available.');
}
- if (!stristr(PHP_OS, "linux") {
- die('skip - test validtes linux error strings only.');
+ if (!stristr(PHP_OS, "Linux")) {
+ die('skip - test validates linux error strings only.');
}
?>
--FILE--