mysql_query나 mysql_fetch_object 같은건 PHP에서 이미 버린 함수지만, 구버전 PHP로 코딩을 해야 할 경우엔 어쩔 수 없이 쓰게 된다.

그런데 문제가 위의 스샷처럼 Visual Studio Code에 설치한 PHP intelephense가 정의되지 않은 함수라고 경고를 잔뜩 내보내서 진짜 문법 문제를 한눈에 알아보기 어렵다는 것이다.

이 경우 intelephense.stubs 설정에 mysql을 추가해 주면 mysql 관련 함수가 정의되지 않았다는 경고는 안나오게 된다.
글쓴이 : Draco (https://draco.pe.kr)

이 저작물은 크리에이티브 커먼즈 저작자표시 4.0 국제 라이선스에 따라 이용할 수 있습니다.