patrickallaert / php-apm

PHP APM (Alternative PHP Monitor)
http://pecl.php.net/package/APM
Other
310 stars 101 forks source link

does not support php 5.2.17 #31

Closed oikomi closed 8 years ago

oikomi commented 8 years ago

hi @patrickallaert

the php version:

root@miaohong01:/home/test/php-apm# php --version
PHP 5.2.17 (cli) (built: Oct 20 2015 15:22:17) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

root@miaohong01:/home/test/php-apm# phpize 
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519

got these errors

/home/test/php-apm/apm.c:64:1: error: unknown type name ‘user_opcode_handler_t’
/home/test/php-apm/apm.c:64:67: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/test/php-apm/apm.c:65:1: error: unknown type name ‘user_opcode_handler_t’
/home/test/php-apm/apm.c:65:65: warning: initialization makes integer from pointer without a cast [enabled by default]
/home/test/php-apm/apm.c: In function ‘apm_begin_silence_opcode_handler’:
/home/test/php-apm/apm.c:80:37: error: called object ‘_orig_begin_silence_opcode_handler’ is not a function
/home/test/php-apm/apm.c: In function ‘apm_end_silence_opcode_handler’:
/home/test/php-apm/apm.c:91:35: error: called object ‘_orig_end_silence_opcode_handler’ is not a function
/home/test/php-apm/apm.c: In function ‘zm_startup_apm’:
/home/test/php-apm/apm.c:302:38: warning: assignment makes integer from pointer without a cast [enabled by default]
/home/test/php-apm/apm.c:305:36: warning: assignment makes integer from pointer without a cast [enabled by default]
make: *** [apm.lo] Error 1
patrickallaert commented 8 years ago

I'm not going to support PHP 5.2 (neither 5.3) inside APM. Those versions of PHP or not supported anymore by the PHP group itself. You may try to use an older version of PHP APM if you can't upgrade yet.