Firewall icon indicating copy to clipboard operation
Firewall copied to clipboard

long2ip() expects parameter 1 to be integer, string given

Open indiboy opened this issue 8 years ago • 3 comments

long2ip() expects parameter 1 to be integer, string given

protected function long2ip($long, $abbr = true) { switch(static::NB_BITS) { case 128: return $this->long2ip6($long, $abbr); default: return strval(long2ip($long)); } }

indiboy avatar Jan 17 '18 19:01 indiboy

下面的链接,修改之后就会报错,是修改不恰当还是? https://github.com/M6Web/Firewall/issues/6 this bug is wrong?php7 error.

indiboy avatar Jan 17 '18 20:01 indiboy

maybe. Can you describe a bit more how you get this error ? In wich php version ?

Txs

omansour avatar Jan 18 '18 13:01 omansour

环境是php7 ,php5.6下正常, 下面的这个bug,php7运行环境下是没有的。我删除了这个修改,就好了。 https://github.com/M6Web/Firewall/issues/6

indiboy avatar Jan 21 '18 20:01 indiboy