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