com php-src: Bugfix #74556 stream_socket_get_name() returns null bytes on MacOS: ext/standard/stream sfuncs.c

From: Date: Sat, 07 Oct 2017 14:08:34 +0000
Subject: com php-src: Bugfix #74556 stream_socket_get_name() returns null bytes on MacOS: ext/standard/stream sfuncs.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-99648@lists.php.net to get a copy of this message
Commit: 843e492c6816fa18eff83a7a3e8c370531796912 Author: Sara Golemon <pollita@php.net> Sat, 7 Oct 2017 10:08:34 -0400 Parents: ec3d864784aa14187ca20a7644ee78c813d8b744 Branches: PHP-7.0 PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=843e492c6816fa18eff83a7a3e8c370531796912 Log: Bugfix #74556 stream_socket_get_name() returns null bytes on MacOS Bugs: https://bugs..php.net/74556 Changed paths: M ext/standard/streamsfuncs.c Diff: diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 877247e..fcfa4a0 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -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; }

« previous php.cvs (#99648) next »