php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 + 30 = ?
Subscribe to this entry?

 
 [2011-09-03 12:28 UTC] arjenjb at gmail dot com
Description:
------------
Cannot compile solr on windows using the instructions found 
at: https://wiki.php.net/internals/windows/stepbystepbuild.

'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'
Stop.


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 = 
EG(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;



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC