diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-01-11 15:43:42 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-01-11 15:43:42 +0100 |
| commit | 8f1428d29ef91d74b4d272af171675f2971eb15b (patch) | |
| tree | a1f4f4d7dc5bfe8096806dd5c5266634e19fa07a /ext/sockets/tests/socket_strerror.phpt | |
| parent | c6e4182351e0173fe58de141e143aac2eacf5efe (diff) | |
| download | php-upstream/5.3.9.tar.gz | |
Imported Upstream version 5.3.9upstream/5.3.9
Diffstat (limited to 'ext/sockets/tests/socket_strerror.phpt')
| -rw-r--r-- | ext/sockets/tests/socket_strerror.phpt | 6 |
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-- |
