Skip to content

[PHP 8.3] Adding new socket_atmark call.#2946

Merged
Girgias merged 2 commits into
php:masterfrom
devnexen:sockets_83_update
Nov 18, 2023
Merged

[PHP 8.3] Adding new socket_atmark call.#2946
Girgias merged 2 commits into
php:masterfrom
devnexen:sockets_83_update

Conversation

@devnexen
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please amend versions.xml but otherwise LGTM.

<?php
// Create a new socket
$sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
echo socket_atmark($sock);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Echoing booleans is not ideal IMHO.

Suggested change
echo socket_atmark($sock);
var_dump(socket_atmark($sock));

@Girgias Girgias added this to the PHP 8.3 milestone Nov 18, 2023
@Girgias Girgias merged commit eef7fb6 into php:master Nov 18, 2023
@devnexen devnexen deleted the sockets_83_update branch November 30, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants