summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/sockets/tests/socket_strerror.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/tests/socket_strerror.phpt b/ext/sockets/tests/socket_strerror.phpt
index 52e7a0a481..3fb788f3d0 100644
--- a/ext/sockets/tests/socket_strerror.phpt
+++ b/ext/sockets/tests/socket_strerror.phpt
@@ -5,10 +5,10 @@ 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") {
+ if (!stristr(PHP_OS, "Linux")) {
die('skip - test validtes linux error strings only.');
}
?>