Index: Drupal_Apache_Solr_Service.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/Drupal_Apache_Solr_Service.php,v
retrieving revision 1.1.2.11
diff -u -p -r1.1.2.11 Drupal_Apache_Solr_Service.php
--- Drupal_Apache_Solr_Service.php	19 Mar 2009 11:40:54 -0000	1.1.2.11
+++ Drupal_Apache_Solr_Service.php	19 Mar 2009 21:27:46 -0000
@@ -1,6 +1,19 @@
 <?php
 require_once 'SolrPhpClient/Apache/Solr/Service.php';
 
+/**
+ * PHP 5.1 compatability code.
+ */
+if (!function_exists('json_decode')) {
+  $path = get_include_path();
+  // Zend files include other files.
+  set_include_path(dirname(__FILE__) . PATH_SEPARATOR . $path);
+  require_once 'Zend/Json/Decoder.php';
+  function json_decode($string) {
+    return Zend_Json_Decoder::decode($string, 0);
+  }
+}
+
 class Drupal_Apache_Solr_Service extends Apache_Solr_Service {
 
   protected $luke;
Index: apachesolr.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr.info,v
retrieving revision 1.1.2.1.2.6
diff -u -p -r1.1.2.1.2.6 apachesolr.info
--- apachesolr.info	27 Jan 2009 21:32:34 -0000	1.1.2.1.2.6
+++ apachesolr.info	19 Mar 2009 21:27:46 -0000
@@ -4,4 +4,4 @@ description = Framework for searching wi
 dependencies [] = search
 package = Apache Solr
 core = "6.x"
-php = 5.2
+php = 5.1.4
Index: apachesolr_search.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/apachesolr_search.info,v
retrieving revision 1.1.2.1.2.6
diff -u -p -r1.1.2.1.2.6 apachesolr_search.info
--- apachesolr_search.info	27 Jan 2009 21:32:34 -0000	1.1.2.1.2.6
+++ apachesolr_search.info	19 Mar 2009 21:27:46 -0000
@@ -5,4 +5,4 @@ dependencies[] = search
 dependencies[] = apachesolr
 package = Apache Solr
 core = "6.x"
-php = 5.2
+php = 5.1.4
Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/apachesolr/README.txt,v
retrieving revision 1.1.2.1.2.12
diff -u -p -r1.1.2.1.2.12 README.txt
--- README.txt	19 Mar 2009 11:40:54 -0000	1.1.2.1.2.12
+++ README.txt	19 Mar 2009 21:27:46 -0000
@@ -17,7 +17,10 @@ use the Core Searches module in tandem w
 Installation
 ------------
 
-Prerequisite: Java 5 or higher (a.k.a. 1.5.x).  PHP 5.2.0 or higher.
+Prerequisite: Java 5 or higher (a.k.a. 1.5.x).  PHP 5.1.4 or higher.
+
+Those with PHP < 5.2.0 must install the PECL json module or download
+the Json code from the Zend Framework (see below).
 
 Install the Apache Solr Drupal module as you would any Drupal module.
 
@@ -29,9 +32,11 @@ From the apachesolr module directory, ru
 
 svn checkout -r6 http://solr-php-client.googlecode.com/svn/trunk/ SolrPhpClient
 
-Note that revision 5 is the currently tested and suggested revision. If you
-do not have svn, you may be able to downlaod a copy of the library from
-https://issues.apache.org/jira/browse/SOLR-341
+Note that revision 6 is the currently tested and suggested revision. If you
+do not have svn, you may download the 2009-03-11 version of the library from
+http://code.google.com/p/solr-php-client/downloads/list
+Make sure that the final directory is named SolrPhpClient under the apachesolr
+module directory.
 
 Download Solr trunk (candidate 1.4.x build) from a nightly build or build it
 from svn.  http://people.apache.org/builds/lucene/solr/nightly/
@@ -60,6 +65,18 @@ apache-solr-nightly/example, and executi
 Test that your solr server is now available by visiting
 http://localhost:8983/solr/admin/
 
+For those using PHP 5.1, you must either install the PECL json extension
+into PHP on your sever, or you may use the Zend framework Json library.
+for the PECL extension see:  http://pecl.php.net/package/json
+The Solr client has been tested with Zend framework release 1.7.7.
+To get this code, you may use svn from the apachesolr directory:
+svn co http://framework.zend.com/svn/framework/standard/tags/release-1.7.7/library/Zend
+However, the only required component is the json component:
+http://framework.zend.com/svn/framework/standard/tags/release-1.7.7/library/Zend/Json/
+The 'Zend' directory should normally be under the apachesolr
+directoy, but may be elsewhere if you set that location to be
+in your PHP include path.
+
 Now, you should  enable the "Apache Solr framework" and "Apache Solr search" 
 modules. Check that you can connect to Solr at ?q=admin/setting/apachesolr
 Now run cron on your Drupal site until your content is indexed. You
