|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-07-03 18:15 UTC] omars@php.net
-Assigned To:
+Assigned To: nick wall
[2016-07-03 18:15 UTC] omars@php.net
-Assigned To: nick wall
+Assigned To: fyb3roptik
[2017-10-24 07:07 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: fyb3roptik
+Assigned To:
[2017-10-28 18:06 UTC] riteshsingh81 at gmail dot com
[2017-10-29 16:47 UTC] riteshsingh81 at gmail dot com
[2020-06-28 07:56 UTC] omars@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: omars
[2020-06-28 07:56 UTC] omars@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 23:00:01 2025 UTC |
Description: ------------ I cannot compile Solr extension 2.4.0 statically. But, Solr extension 2.3.0 has no problem. Test script: --------------- $ tar xzf php-5.6.21.tgz $ tar xzvf solr-2.4.0.tgz -C php-5.6.21/ext/ $ mv php-5.6.21/ext/solr* php-5.6.21/ext/solr $ cd php-5.6.21 $ rm configure $ ./buildconf --force $ ./configure --enable-solr --with-curl $ make Expected result: ---------------- .... Build complete. Don't forget to run 'make test'. Actual result: -------------- .... /home/ubuntu/php-5.6.21/ext/solr/src/php7/php_solr.c:1259:2: note: in expansion of macro ‘zend_hash_init’ zend_hash_init(SOLR_GLOBAL(functions), nSize, NULL, solr_destroy_function, persistent); ^ In file included from /home/ubuntu/php-5.6.21/Zend/zend.h:286:0, from /home/ubuntu/php-5.6.21/main/php.h:35, from /home/ubuntu/php-5.6.21/ext/solr/src/php7/php_solr.h:28, from /home/ubuntu/php-5.6.21/ext/solr/src/php7/php_solr.c:23: /home/ubuntu/php-5.6.21/Zend/zend_hash.h:100:14: note: expected ‘dtor_func_t {aka void (*)(void *)}’ but argument is of type ‘void (*)(zval *) {aka void (*)(struct _zval_struct *)}’ ZEND_API int _zend_hash_init(HashTable *ht, uint nSize, dtor_func_t pDestructor, zend_bool persistent ZEND_FILE_LINE_DC); ^ Makefile:792: recipe for target 'ext/solr/src/php7/php_solr.lo' failed make: *** [ext/solr/src/php7/php_solr.lo] Error 1