Back to writing
미분류 1 min read HYEONG HWAN, MUN

[PHP5] Cannot redeclare class soapclient in ...

Cannot redeclare class soapclient in xxx

이 에러는 php5.x 에서만 발생한다.

soapclient가 php5 에서 built-in class 라서

nusoap 과 충돌이 일어난다.

해결책은
nusoap 관련파일을 몽땅 읽은후에  soapclient  라는 단어를  soapclientW 로 바꾸어주면 된다.