File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 99
1010 // setup some basic stuff for checking - getuid/getpwuid not available on mac/windows
1111 $ apache_user = 'unknown ' ;
12- if (substr_count (strtolower (PHP_OS ), 'nix ' ) > 0 ) {
12+ if (substr_count (strtolower (PHP_OS ), 'nix ' ) > 0 || substr_count ( strtolower ( PHP_OS ), ' linux ' ) > 0 ) {
1313 $ apache_user = (function_exists ('posix_getuid ' )) ? posix_getuid () : 'unknown ' ;
1414 $ apache_user = (function_exists ('posix_getpwuid ' )) ? posix_getpwuid ($ apache_user ) : $ apache_user ;
1515 }
100100 if ($ socket !== false ) {
101101 $ address = @gethostbyname ($ config ['gettingstarted ' ]['stratumurl ' ]);
102102 $ result = @socket_connect ($ socket , $ address , $ config ['gettingstarted ' ]['stratumport ' ]);
103- if ($ result !== 1 ) {
103+ if ($ result !== true ) {
104104 $ enotice [] = "We tried to poke your Stratum server using config->gettingstarted details but it didn't respond " ;
105105 }
106106 $ close = @socket_close ($ socket );
You can’t perform that action at this time.
0 commit comments