patrickallaert / php-apm

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

Make error in backtrace #35

Closed sib8th closed 8 years ago

sib8th commented 8 years ago

/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...

0livier commented 8 years ago

Hi there. What version of PHP are you using ?

sib8th commented 8 years ago

I'm using PHP 5.6.17

patrickallaert commented 8 years ago

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"?

sib8th commented 8 years ago

@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.

patrickallaert commented 8 years ago

Great to hear that @sib8th!

Enjoy!