|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46557 --disable-all seems to disable json
Submitted: 2008-11-12 16:36 UTC Modified: 2008-11-12 20:11 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: dmitryshw at hotmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.2.6 OS: Montavista
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: dmitryshw at hotmail dot com
New email:
PHP Version: OS:


 [2008-11-12 16:36 UTC] dmitryshw at hotmail dot com
Using PHP 5.2.6, documentation claims json is part of the core, cannot be enabled or disabled.


'./configure' '--disable-all' '--with-apxs2=/opt/montavista50_p3/pro/devkit/x86/pentium3/bin/apxs' '--enable-libxml' '--with-libxml-dir=/opt/montavista50_p3/common' '--enable-ftp' '--enable-sockets' '--enable-spl' '--enable-session' '--enable-xml' '--with-pcre-regex' '--disable-cli' '--disable-ipv6' '--disable-reflection' '--disable-dom' 

Expected result:
json_encode/decode works

Actual result:
[11-Nov-2008 19:57:58] PHP Fatal error:  Call to undefined function json_encode() in ...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-12 18:55 UTC]
docs are wrong. --disable-all disables all.
 [2008-11-12 19:37 UTC]
It never claims it cannot be disabled.
"As of PHP 5.2.0, the JSON extension is bundled and compiled into PHP by default. "
 [2008-11-12 20:11 UTC] dmitryshw at hotmail dot com
Understood. The absence of the enable/disable switches in the installation section led me to believe this cannot be disabled (nor need to be enabled explicitly)
 [2015-01-21 05:46 UTC]
Automatic comment from SVN on behalf of mazzanet
Log: Clarified as per bug #46557 and note #116544
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Oct 25 02:03:33 2021 UTC