zendtech / ZendOptimizerPlus

Other
914 stars 142 forks source link

opcache 7.0.3 @ php 5.2.17 error #168

Closed matintinlive closed 10 years ago

matintinlive commented 10 years ago

any idea? thanks.

/usr/local/directadmin/custombuild/zendopcache-7.0.3# make > /home/x.log /usr/local/directadmin/custombuild/zendopcache-7.0.3/ZendAccelerator.c: In function âzend_accel_get_auto_globalsâ: /usr/local/directadmin/custombuild/zendopcache-7.0.3/ZendAccelerator.c:1247: warning: passing argument 2 of âzend_hash_existsâ discards qualifiers from pointer target type /usr/local/php/include/php/Zend/zend_hash.h:161: note: expected âchar _â but argument is of type âconst char * constâ /usr/local/directadmin/custombuild/zendopcache-7.0.3/ZendAccelerator.c: In function âzend_accel_set_auto_globalsâ: /usr/local/directadmin/custombuild/zendopcache-7.0.3/ZendAccelerator.c:1272: warning: passing argument 1 of âzend_is_auto_globalâ discards qualifiers from pointer target type /usr/local/php/include/php/Zend/zend_compile.h:566: note: expected âchar â but argument is of type âconst char * constâ /usr/local/directadmin/custombuild/zendopcache-7.0.3/zend_accelerator_module.c: In function âzif_opcache_compile_fileâ: /usr/local/directadmin/custombuild/zendopcache-7.0.3/zend_accelerator_module.c:750: warning: format â%sâ expects type âchar â, but argument 3 has type âvoid _â

lazy404 commented 10 years ago

These are only warnings and should be harmless. We use opcache with php-5.2 and except thiese warnings everything works fine.

dstogov commented 10 years ago

yeah, these are only harmless warnings and we are not going to fix them for php-5.2.