mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Bugfix #74556 stream_socket_get_name() returns null bytes on MacOS
This commit is contained in:
parent
ec3d864784
commit
843e492c68
@ -314,7 +314,7 @@ PHP_FUNCTION(stream_socket_get_name)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (!ZSTR_LEN(name)) {
|
||||
if ((ZSTR_LEN(name) == 0) || (ZSTR_VAL(name)[0] == 0)) {
|
||||
zend_string_release(name);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user