php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58915 pecl Solr extension not compatible with PHP 5.2.11
Submitted: 2009-10-22 16:50 UTC Modified: 2009-10-23 03:51 UTC
From: arohter at vuze dot com Assigned: iekpo (profile)
Status: Closed Package: solr (PECL)
PHP Version: 5.2.11 OS: centos 5, fedora 11
Private report: No CVE-ID: None
 [2009-10-22 16:50 UTC] arohter at vuze dot com
Description:
------------
I've been trying to get the 
http://pecl.php.net/package/solr/ extension running on my 
PHP 5.2.11 servers, however it appears that all those builds 
require PHP 5.3 to function, despite listing compatibility 
with "PHP Version: PHP 5.2.11 or newer".

I've tried on both CentOS 5 and Fedora 11, but after 
successfully installing solr-beta via pecl, I get this when 
the extension tries to load:

#php -m
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib64/php/modules/solr.so' - 
/usr/lib64/php/modules/solr.so: undefined symbol: 
ap_php_vasprintf in Unknown on line 0

So I downloaded the PHP 5.3.0 and 5.2.11 sources, and 
discovered that the method 'ap_php_vasprintf' was only added 
to php starting with 5.3, and is not avail in 5.2.

Do you know if this is expected (in which case the pecl 
compatibility info should be updated), or if this was an 
inadvertent error, and I can expect a 0.9.4 package that 
works against 5.2.11 ?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-22 17:51 UTC] iekpo@php.net
This has been fixed in 289867

The 0.9.4 would be released as soon as regression tests are completed.

Thanks for reporting this issue.
 [2009-10-23 00:30 UTC] iekpo@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/solr

This issue has been resolved in the 0.9.4 release.

It has been tested and verified on Centos 5 and Ubuntu 8.04 with php 5.3.0 and 5.2.11
 [2009-10-23 03:51 UTC] arohter at vuze dot com
Confirmed working on my php 5.2.11 centos 5 and fedora 11 
boxes.  Thanks!
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 01 07:03:34 2021 UTC