|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59934 Compilation fails
Submitted: 2011-09-03 12:28 UTC Modified: 2011-10-12 21:28 UTC
From: arjenjb at gmail dot com Assigned: felipe (profile)
Status: Closed Package: solr (PECL)
PHP Version: Irrelevant OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: arjenjb at gmail dot com
New email:
PHP Version: OS:


 [2011-09-03 12:28 UTC] arjenjb at gmail dot com
Cannot compile solr on windows using the instructions found 

'nmake' gives me the following error:

..\pecl\solr\solr_functions_helpers.c(1115) : error C2059: 
syntax error : '}'
NMAKE : fatal error U1077: '"C:\Program Files 
(x86)\Microsoft Visual Studio 9.0\VC\Bin\cl.exe"' : return 
code '0x2'

The following patch fixes the problem:

--- solr_functions_helpers.c    (revision 316077)
+++ solr_functions_helpers.c    (working copy)
@@ -1112,7 +1112,7 @@
        HashTable *global_function_table = 

        /* json_last_error() */
-       zval *json_last_error_params[] = { };
+       zval *json_last_error_params[] = { NULL };

        json_decode_ret_val_ptr = &json_decode_ret_val;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-10-12 21:28 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2011-10-12 21:28 UTC]
Fixed in SVN.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 02 08:03:36 2021 UTC