mirror of
https://github.com/php/php-src.git
synced 2026-04-17 13:01:02 +02:00
Merge branch 'PHP-7.0' into PHP-7.1
* PHP-7.0: Bugfix #74556 stream_socket_get_name() returns null bytes on MacOS
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user