1--TEST--
2ext/sockets - socket_strerror - basic test
3--CREDITS--
4Florian Anderiasch
5fa@php.net
6--SKIPIF--
7<?php
8if (!extension_loaded('sockets')) {
9    die('skip sockets extension not available.');
10}
11if (!stristr(PHP_OS, "Linux")) {
12    die('skip - test validates linux error strings only.');
13}
14?>
15--FILE--
16<?php
17/* Only test one representative error code here,
18 * as messages will differ depending on the used libc. */
19var_dump(socket_strerror(1));
20?>
21--EXPECT--
22string(23) "Operation not permitted"
23