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
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.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 12:01:27 2024 UTC