Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 909735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:55:48+00:00 2026-05-15T16:55:48+00:00

Based on my php_info() my PHP version is PHP Version 5.2.9 However, for some

  • 0

Based on my php_info() my PHP version is PHP Version 5.2.9

However, for some reason when i try and use json_decode, I receive an error that the function is not found (and it should be for PHP 5.2 and up).

PHP.net suggests I check the configure command:

‘./configure’ ‘–prefix=/usr/local/php5’ ‘–with-config-file-scan-dir=/usr/local/php5/etc’ ‘–with-apxs2=/usr/sbin/apxs’ ‘–disable-all’ ‘–enable-libxml’ ‘–with-libxml-dir=/usr/local’ ‘–enable-reflection’ ‘–disable-cli’ ‘–disable-cgi’ ‘–enable-zend-multibyte’ ‘–with-regex=php’ ‘–enable-filter’ ‘–with-pcre-regex=yes’

I don’t understand half of this, but the –disable-all may be the problem? Is there a way to use json_decode without re-building PHP?

I could find a json function, but I’d rather use the build in PHP functions that should be available to me, and am afraid there may be other functionality that i’ll want to use later as well.

Do the libraries for JSON exist whether they have been compiled or not, and can I include them directly when I want to use them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T16:55:49+00:00Added an answer on May 15, 2026 at 4:55 pm

    –disable-all is indeed the problem.

    If you can’t recompile, or install a “json” package from a linux packager, I would highly suggest using Zend_Json. It will automatically use json_[en|de]code if available.

    http://framework.zend.com/apidoc/1.10/Zend_Json/Zend_Json.html

    $json = Zend_Json::encode($data);
    $data = Zend_Json::decode($data);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a class-based php web app. I have some places where objects
Currently in my PHP-based applications I use a file, for instance services.php and call
I have a PHP based application that I need to work on both a
I am programming an online PHP-based fantasy pet simulation game. I am not very
I've got a PHP-based library that takes phone numbers and translates them into locally
I am working on a system (PHP based, but unimportant for this) that keeps
I have a PHP script that logs informational and error messages to a database
fileA.php: requires function.inc.php and uses x() from that include file fileB.php: requires fileA.php User
I have a PHP script that publishes customised JavaScript based on the parameter, with
I am working on a PHP-based project management system that allows users to upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.