]> granicus.if.org Git - php/commitdiff
MFH: Fixed ext/sockets/tests/socket_strerror.phpt
authorFlorian Anderiasch <fa@php.net>
Tue, 6 Sep 2011 11:15:23 +0000 (11:15 +0000)
committerFlorian Anderiasch <fa@php.net>
Tue, 6 Sep 2011 11:15:23 +0000 (11:15 +0000)
So it seems a missing ) killed the test.

ext/sockets/tests/socket_strerror.phpt

index 52e7a0a4816f622df314af060b1e13d1c8ec021a..3fb788f3d05f3303c61486005587da76d08dbc8e 100644 (file)
@@ -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.');
     }
 ?>