We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//php_channel.c#L148 /** * 通道是否为空 */ PHP_METHOD(workerman_channel, isEmpty) { wmChannelObject *chan_t; wmChannel *chan; chan_t = (wmChannelObject*) wmChannel_fetch_object(Z_OBJ_P(getThis())); chan = chan_t->chan; int num = wmChannel_num(chan); bool is_exist = (num > 0); //实际判断的是 channel 非空 RETURN_BOOL(is_exist); }
该方法实际逻辑和名字完全相反。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
该方法实际逻辑和名字完全相反。
The text was updated successfully, but these errors were encountered: