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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: arjenjb at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 10:01:28 2024 UTC