杨月

Results 3 issues of 杨月

实际测试环境遇到各种Check response不对的问题

native-dns server error: TypeError: ans.address.padEnd is not a function at response.answer.forEach.ans (/usr/lib/node_modules/whonow/index.js:98:71) at Array.forEach (native) at UDPServer.server.on (/usr/lib/node_modules/whonow/index.js:66:29) at emitTwo (events.js:106:13) at UDPServer.emit (events.js:191:7) at UDPServer.Server.handleMessage (/usr/lib/node_modules/whonow/node_modules/native-dns/lib/server.js:68:10) at Socket. (/usr/lib/node_modules/whonow/node_modules/native-dns/lib/server.js:80:10)...

看了你给出的solution,你已经解释了is_numeric()函数和(int)xxx强转的区别,但是能解释下: ``` 1、$_GET['time'] < 60 * 60 * 24 * 30 * 2 2、(int)$_GET['time'] ``` 这两种的区别吗?因为本题过is_numeric容易,但是后面涉及到字符串和整数比较大小时候,按照php的说法,[字符串会转化为integer](http://php.net/manual/zh/language.types.string.php#language.types.string.conversion),为什么在进行数值比较时候的类型转化和通过(int)强转的类型转化结果不一致?而且此题貌似在不同环境其解法不一样。忘解惑。