|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-09-01 12:20 UTC] remicollet@php.net
Description: ------------ Build under RHEL4 is ok, but not loading. PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4/memcache.so' - /usr/lib/php4/memcache.so: undefined symbol: php_url_parse_ex in Unknown on line 0 After a little search i found a solution on http://pecl.php.net/bugs/bug.php?id=9067 Patch proposal below Reproduce code: --------------- --- memcache-2.1.2/memcache_session.c.orig 2007-09-01 18:10:33.000000000 +0200 +++ memcache-2.1.2/memcache_session.c 2007-09-01 18:11:35.000000000 +0200 @@ -32,6 +32,10 @@ #include "ext/standard/url.h" #include "php_memcache.h" +#if PHP_MAJOR_VERSION == 4 && PHP_MINOR_VERSION == 3 && PHP_RELEASE_VERSION < 10 +# define php_url_parse_ex(u, l) php_url_parse(u) +#endif + #if HAVE_MEMCACHE_SESSION ps_module ps_mod_memcache = { PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
For those who are stuck with php 4.3.9, the workaround patch posted above is not sufficient if you have more than a single memcached server in your session.save_path string. Replacing the patch code with the following does the trick: #if PHP_MAJOR_VERSION == 4 && PHP_MINOR_VERSION == 3 && PHP_RELEASE_VERSION < 10 PHPAPI php_url *php_url_parse_ex(char const *str, int length) { char* tmp = estrndup(str, length); php_url *ret = php_url_parse(tmp); STR_FREE(tmp); return ret; } #endif