执行这段简单的代码后: $message = 'some text '.inet_pton('119.252.33.171');
throw new \Exception($message); PHPCode example 1 from sandbox.onlinephpfunctions.com (注释和取消注释2行代码3-4和6-7) Code example 2 from sandbox.onlinephpfunctions.com我用下面这行代码解决了这个问题: $message = preg_replace