Closed sib8th closed 8 years ago
Hi there. What version of PHP are you using ?
I'm using PHP 5.6.17
That error is just completely weird.
Whatever the version of PHP, "znode" has always been composed of a "constant" member. Do you have a complete steps to reproduce including all the commands you run prior to "make"?
@patrickallaert Thank you very much for your reply. I've already solved the problem which is caused by the incompatible old php version of my ubuntu system. After I modified znode and some other details in the source code in order to eliminate errors, I made successfully. Recently I reinstalled a newer ubuntu system, I found the step of make and install completed successfully, so the error must have something to do with the php version.
Great to hear that @sib8th!
Enjoy!
/home/zhoupeiyuan/php-apm/php-apm/backtrace.c: In function 'append_backtrace': /home/zhoupeiyuan/php-apm/php-apm/backtrace.c:186:6: warning: passing argument 2 of 'zend_get_object_classname' from incompatible pointer type [enabled by default] /usr/include/php5/Zend/zendAPI.h:326:14: note: expected 'char *' but argument is of type 'const char _' /home/zhoupeiyuan/php-apm/php-apm/backtrace.c:221:28: error: 'znode' has no member named 'constant' /home/zhoupeiyuan/php-apm/php-apm/backtrace.c: In function 'append_flat_zval_r': /home/zhoupeiyuan/php-apm/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/zhoupeiyuan/php-apm/php-apm/backtrace.c:421:5: note: expected 'char ' but argument is of type 'const char *' make: *\ [backtrace.lo] Error 1
I don't know which step goes wrong...