peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.31k stars 202 forks source link

fix accept behavior timeout set to 0 #1029

Closed avriltank closed 2 years ago

avriltank commented 2 years ago

when set to 0,should return the accepted socket or false!there is no need to walk in a for block!

dnfadmin commented 2 years ago

CLA assistant check
All CLA requirements met.

avriltank commented 2 years ago

(int)thesocket should be the native pointer of thesocket,justify this behavior to php

jakubmisek commented 2 years ago

thanks!