php.net |  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
Votes:1
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dmitryshw at hotmail dot com
New email:
PHP Version: OS:

 

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

Config:

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-12 18:55 UTC] jani@php.net
docs are wrong. --disable-all disables all.
 [2008-11-12 19:37 UTC] bjori@php.net
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] mazzanet@php.net
Automatic comment from SVN on behalf of mazzanet
Revision: http://svn.php.net/viewvc/?view=revision&revision=335782
Log: Clarified as per bug #46557 and note #116544
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC