php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67140 undefined symbol: php_json_decode_ex
Submitted: 2014-04-28 08:27 UTC Modified: 2014-05-22 20:49 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: yunosh@php.net Assigned: mike (profile)
Status: Not a bug Package: pecl_http (PECL)
PHP Version: Irrelevant OS:
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:
Package:
Bug Type:
Summary:
From: yunosh@php.net
New email:
PHP Version: OS:

 

 [2014-04-28 08:27 UTC] yunosh@php.net
Description:
------------
If using the http extension (2.0.6) together with the jsonc extension (1.3.5) this errors is raised when loading the extension:

Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/http.so' - /usr/lib/php5/20121212/http.so: undefined symbol: php_json_decode_ex in Unknown on line 0

I'm not sure if it's a bug in jsonc, not implementing some public API that ext/json provides, or a bug in http, using an undocumented or otherwise not public API of ext/json.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-06 09:34 UTC] romain dot chanu at ac-clermont dot fr
Hello,

I'm facing this problem too... You will find below some informations about my set up:

json version 	1.3.1 
PHP Version 5.5.3-1ubuntu2.3

Error:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20121212/http.so' - /usr/lib/php5/20121212/http.so: undefined symbol: php_json_decode_ex in Unknown on line 0
PHP Fatal error:  Class 'HttpRequest' not found in /var/www/http.php on line 3
 [2014-05-21 07:29 UTC] php at lornajane dot net
I see the same thing using stock ubuntu PHP (PHP 5.5.3-1ubuntu2.1) - it is fine if I load the JSON extension before the HTTP one, either put the json one first in php.ini or if using the ubuntu extension manager thing set the http.ini priority to 50 before you use php5enmod on it.
 [2014-05-22 20:44 UTC] mike@php.net
-Assigned To: +Assigned To: mike
 [2014-05-22 20:49 UTC] mike@php.net
-Status: Assigned +Status: Not a bug
 [2014-05-22 20:49 UTC] mike@php.net
The API is there,  as Lorna pointed out,  you have to load all dependant extensions prior pecl_http.

@romain dot chanu at ac-clermont dot fr:
The HttpRequest class is only available in version 1 of this extension, though.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 16:01:31 2024 UTC