php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67877 json_decode php library not used in latest Ubuntu
Submitted: 2014-08-21 05:55 UTC Modified: 2014-08-21 06:09 UTC
From: scott dot yeadon at anu dot edu dot au Assigned:
Status: Closed Package: solr (PECL)
PHP Version: Irrelevant OS: Ubuntu 14.04.1 LTS
Private report: No CVE-ID: None
 [2014-08-21 05:55 UTC] scott dot yeadon at anu dot edu dot au
Description:
------------
This probably isn't technically a bug with the Solr package, however the PHP-provided json library is no longer being used in Ubuntu due to licensing issues, it uses a 'compatible' json module instead. This results in php_json_decode calls not being recognised and so the package cannot be installed on these systems. (see PHP5 section at https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes)

To test, build and install on Ubuntu 14.04.1 LTS. After building and installing, when apache is started the following error occurs:
 PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212+lfs/solr.so' - /usr/lib/php5/20121212+lfs/solr.so: undefined symbol: php_json_decode_ex in Unknown on line 0

By removing the body of the functions you can install it with apparently no ill effects on the 'normal' solr use, however obviously you then cannot use the JSON part of solr package.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-21 06:09 UTC] scott dot yeadon at anu dot edu dot au
-Status: Open +Status: Closed
 [2014-08-21 06:09 UTC] scott dot yeadon at anu dot edu dot au
Sorry, my bad. You just need to ensure the 'new' JSON module is loaded before loading the PECL module. I had to comment out the json.ini file and add the extensions in the right order in the php.ini file to get it to work. Apologies for the noise.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC