From d7b2ee91d86e61a20c630bf18eb679dcd53650b9 Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 7 Oct 2017 18:45:14 +0200 Subject: [PATCH] Address OSX-specific PHP bug 74556 --- src/Connection.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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