patrickallaert / php-apm

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

dose not support PHP 5.3.29 #32

Closed oikomi closed 8 years ago

oikomi commented 9 years ago

hi @patrickallaert

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

root@miaohong01:/home/test/php-apm# php --version
PHP 5.3.29 (cli) (built: Oct 20 2015 17:09:06) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend Technologies

got these errors

/home/test/php-apm/backtrace.c: In function ‘append_backtrace’:
/home/test/php-apm/backtrace.c:186:6: warning: passing argument 2 of ‘zend_get_object_classname’ from incompatible pointer type [enabled by default]
/mh/phphook/php/include/php/Zend/zend_API.h:331:14: note: expected ‘char **’ but argument is of type ‘const char **’
/home/test/php-apm/backtrace.c:221:28: error: ‘znode’ has no member named ‘constant’
/home/test/php-apm/backtrace.c: In function ‘append_flat_zval_r’:
/home/test/php-apm/backtrace.c:421:5: warning: passing argument 2 of ‘expr->value.obj.handlers->get_class_name’ from incompatible pointer type [enabled by default]
/home/test/php-apm/backtrace.c:421:5: note: expected ‘char **’ but argument is of type ‘const char **’
make: *** [backtrace.lo] Error 1
Dooy commented 9 years ago

There is the same errors with PHP 5.3.14. Which version can be supported?

patrickallaert commented 8 years ago

I'm not going to support PHP <= 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. PHP 5.4 is the bare minimum, but I strongly encourage you to upgrade to 5.6.