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

ext/sockets/tests/socket_strerror.phpt

index 52e7a0a4816f622df314af060b1e13d1c8ec021a..7985fadbab4a743b28ed1c103a6c8299ad195b17 100644 (file)
@@ -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--