[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] svn: /pecl/solr/trunk/ php_solr.c php_solr_utils.c
From:       Israel_Ekpo <iekpo () php ! net>
Date:       2009-09-30 15:56:35
Message-ID: svn-iekpo-1254326195-289009-528141879 () svn ! php ! net
[Download RAW message or body]

iekpo                                    Wed, 30 Sep 2009 15:56:35 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=289009

Log:
-Enforcing library dependencies during compile time.

Changed paths:
    U   pecl/solr/trunk/php_solr.c
    U   pecl/solr/trunk/php_solr_utils.c

Modified: pecl/solr/trunk/php_solr.c
===================================================================
--- pecl/solr/trunk/php_solr.c	2009-09-30 15:21:31 UTC (rev 289008)
+++ pecl/solr/trunk/php_solr.c	2009-09-30 15:56:35 UTC (rev 289009)
@@ -26,6 +26,14 @@
 #error PHP 5.2.11 or greater is required. Please upgrade your php version.
 #endif

+#if LIBCURL_VERSION_NUM < 0x071200
+#error libcurl 7.18.0 or later is required. Please upgrade your libcurl version.
+#endif
+
+#if LIBXML_VERSION < 20631
+#error libxml2 2.6.31 or later is required. Please upgrade your libxml2 version.
+#endif
+
 /******************************************************************************/
 /** GLOBAL VARIABLE FOR THE EXTENSION				                         **/
 /******************************************************************************/

Modified: pecl/solr/trunk/php_solr_utils.c
===================================================================
--- pecl/solr/trunk/php_solr_utils.c	2009-09-30 15:21:31 UTC (rev 289008)
+++ pecl/solr/trunk/php_solr_utils.c	2009-09-30 15:56:35 UTC (rev 289009)
@@ -110,7 +110,7 @@
 	raw_res_length = sbuilder.len;
 	str_end = (unsigned char *) (raw_resp + raw_res_length);

-	if (!php_var_unserialize(&return_value, &raw_resp, str_end, &var_hash TSRMLS_CC))
+	if (!php_var_unserialize(&return_value, (const unsigned char **) &raw_resp, \
str_end, &var_hash TSRMLS_CC))  {
 		solr_throw_exception_ex(solr_ce_SolrException, SOLR_ERROR_1000 TSRMLS_CC, \
SOLR_FILE_LINE_FUNC, SOLR_ERROR_1000_MSG);



-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic