Fixes based on suggestions
Fixes based on suggestions

I use the term socket for any extension, either unix socket, or internet socket (port).

I check if the socket is all digits
* only integers 0 and larger would pass this test.
I then check if the string is less than or equal to the maximum port number.

By using "if($socket)" I make sure socket isn't false, empty, or the string '0'.

I don't believe I need to initialize $port because $port will always be set if $socket is true. Please show me if I am wrong here. Thanks
jbicha/server,pmattern/server,andreas-p/nextcloud-server,michaelletzgus/nextcloud-server,sharidas/core,whitekiba/server,sharidas/core,xx621998xx/server,pixelipo/server,Ardinis/server,jbicha/server,IljaN/core,michaelletzgus/nextcloud-server,cernbox/core,pixelipo/server,pollopolea/core,whitekiba/server,cernbox/core,nextcloud/server,owncloud/core,lrytz/core,sharidas/core,lrytz/core,xx621998xx/server,pmattern/server,bluelml/core,xx621998xx/server,whitekiba/server,sharidas/core,bluelml/core,jbicha/server,cernbox/core,pixelipo/server,lrytz/core,xx621998xx/server,pixelipo/server,IljaN/core,lrytz/core,lrytz/core,jbicha/server,pmattern/server,endsguy/server,pollopolea/core,bluelml/core,bluelml/core,Ardinis/server,pollopolea/core,owncloud/core,andreas-p/nextcloud-server,xx621998xx/server,owncloud/core,michaelletzgus/nextcloud-server,nextcloud/server,andreas-p/nextcloud-server,sharidas/core,owncloud/core,bluelml/core,michaelletzgus/nextcloud-server,pollopolea/core,Ardinis/server,andreas-p/nextcloud-server,nextcloud/server,whitekiba/server,cernbox/core,endsguy/server,IljaN/core,endsguy/server,pollopolea/core,phil-davis/core,nextcloud/server,pmattern/server,IljaN/core,whitekiba/server,pixelipo/server,pmattern/server,Ardinis/server,cernbox/core,endsguy/server,andreas-p/nextcloud-server,Ardinis/server,owncloud/core,IljaN/core,endsguy/server,jbicha/server