使用Memcache的时候出现下列问题,是为什么?
Memcache::connect() expects parameter 2 to be long, string given in 
谢谢了

解决方案 »

  1.   

    Memcache::connect()  //第二个参数,设置太长了吧
      

  2.   

    楼上两位.....
    Memcache::connect ( string $host [, int $port [, int $timeout ]] )
    第二个参数填端口号,长整形(long),你填的是string类型了,所以报错,哪是太长的意思
      

  3.   

    呵呵,第二个参数类型传错了,应是long int型
      

  4.   

    to be long  不是 too long...说太长的拉出去爆菊...