diff --git a/src/Connection.php b/src/Connection.php index ae762d87..fa7a2229 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -156,9 +156,9 @@ private function parseAddress($address) $address = (string)substr($address, 0, -1); } - // work around unknown addresses should return null value: https://3v4l.org/5C1lo + // work around unknown addresses should return null value: https://3v4l.org/5C1lo and https://bugs.php.net/bug.php?id=74556 // PHP uses "\0" string and HHVM uses empty string (colon removed above) - if ($address === "\x00" || $address === '') { + if ($address === '' || $address[0] === "\x00" ) { return null; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy