php-config

php-config는 설치된 PHP 구성에 대한 정보를 얻기 위한 간단한 셸 스크립트입니다.

확장을 컴파일할 때 여러 PHP 버전이 설치되어 있는 경우 구성 중에 --with-php-config 옵션을 사용하여 빌드할 설치를 지정할 수 있으며 해당 php-config 스크립트의 경로를 지정할 수 있습니다.

php-config 스크립트에서 제공하는 명령줄 옵션 목록은 -h 스위치와 함께 php-config를 실행하여 언제든지 쿼리할 수 있습니다.

Usage: /usr/local/bin/php-config [OPTION]
Options:
  --prefix            [...]
  --includes          [...]
  --ldflags           [...]
  --libs              [...]
  --extension-dir     [...]
  --include-dir       [...]
  --php-binary        [...]
  --php-sapis         [...]
  --configure-options [...]
  --version           [...]
  --vernum            [...]
                

Command line options

Option Description
--prefix PHP가 설치된 디렉토리 접두사, e.g. /usr/local
--includes List of -I options with all include files
--ldflags LD Flags which PHP was compiled with
--libs Extra libraries which PHP was compiled with
--extension-dir 기본적으로 확장자가 검색되는 디렉토리
--include-dir 헤더 파일이 기본적으로 설치되는 디렉토리 접두사
--php-binary PHP CLI 또는 CGI 바이너리의 전체 경로
--php-sapis 사용 가능한 모든 SAPI 모듈 표시
--configure-options 현재 PHP 설치 구성을 다시 생성하는 옵션 구성
--version PHP 버전
--vernum PHP version as integer