유닉스. pecl 멤프로프

유닉스. pecl 멤프로프

설치하려고 하는데https://github.com/arnaud-lb/php-memory-profilerFreeBSD 9.2에서

배 설치 후http://pecl.php.net/get/memprof-1.0.0.tgz

다음과 같은 오류가 발생했습니다.

    In file included from /usr/local/include/php/Zend/zend_compile.h:690,
                 from /usr/local/include/php/Zend/zend_modules.h:26,
                 from /usr/local/include/php/Zend/zend_API.h:26,
                 from /usr/local/include/php/main/php.h:38,
                 from /tmp/pear/memprof/memprof.c:19:
/usr/local/include/php/Zend/zend_vm_opcodes.h:168:7: warning: no newline at end of file
/tmp/pear/memprof/memprof.c:37:3: error: #error "ZTS build not supported (yet)"
/tmp/pear/memprof/memprof.c:114:3: warning: #warning No support for malloc hooks, this build will not track persistent allocations
/tmp/pear/memprof/memprof.c: In function 'memprof_zend_execute_internal':
/tmp/pear/memprof/memprof.c:695: error: too few arguments to function 'execute_internal'
/tmp/pear/memprof/memprof.c:697: error: too few arguments to function 'old_zend_execute_internal'
/tmp/pear/memprof/memprof.c: In function 'OnChangeMemoryLimit':
/tmp/pear/memprof/memprof.c:724: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c:726: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c: In function 'memprof_enable':
/tmp/pear/memprof/memprof.c:744: error: too few arguments to function 'is_zend_mm'
/tmp/pear/memprof/memprof.c:751: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c: In function 'memprof_disable':
/tmp/pear/memprof/memprof.c:773: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c: In function 'zm_startup_memprof':
/tmp/pear/memprof/memprof.c:899: error: too few arguments to function 'zend_register_functions'
/tmp/pear/memprof/memprof.c: In function 'zif_memprof_memory_get_usage':
/tmp/pear/memprof/memprof.c:1297: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c:1298: error: too few arguments to function 'zend_memory_usage'
/tmp/pear/memprof/memprof.c:1299: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c:1301: error: too few arguments to function 'zend_memory_usage'
/tmp/pear/memprof/memprof.c: In function 'zif_memprof_memory_get_peak_usage':
/tmp/pear/memprof/memprof.c:1317: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c:1318: error: too few arguments to function 'zend_memory_peak_usage'
/tmp/pear/memprof/memprof.c:1319: error: too few arguments to function 'zend_mm_set_heap'
/tmp/pear/memprof/memprof.c:1321: error: too few arguments to function 'zend_memory_peak_usage'
*** [memprof.lo] Error code 1

Stop in /tmp/pear/pear-build-ranielrLVRCS/memprof-1.0.0.
ERROR: `make' failed

다른 pecl, PHP 모듈 및 확장은 괜찮습니다. Debian wheezy에서도 설치가 가능합니다. FreeBSD에 문제가 있나요? 아니면?

답변1

memprof.c:37:3: 오류: #error "ZTS 빌드는 (아직) 지원되지 않습니다."

memprof는 PHP의 ZTS 빌드를 지원하지 않습니다. 이는 PHP가 이 옵션으로 빌드되었으며 --enable-maintainer-ztsmemprof는 이를 지원하지 않음을 의미합니다.

스위치 없이 PHP를 빌드해야 합니다 --enable-maintainer-zts. 이 스위치는 스레드 서버(예: Apache 작업자 mpm의 mod_php)에서 PHP를 서버 모듈로 사용하는 경우에만 필요하며 이는 권장되지 않습니다.

관련 정보