]> granicus.if.org Git - php/commit
Fix bug #63595 GMP memory management conflicts with other libraries using GMP
authorRemi Collet <remi@php.net>
Mon, 27 Oct 2014 06:45:34 +0000 (07:45 +0100)
committerStanislav Malyshev <stas@php.net>
Mon, 3 Nov 2014 19:42:15 +0000 (11:42 -0800)
commit7740edae36fea4e831afc6f1e37eb559dcf597f0
tree1ca170d379b429b6ae33d63a1dc70176cdeaac9c
parentc351b47ce85a3a147cfa801fa9f0149ab4160834
Fix bug #63595 GMP memory management conflicts with other libraries using GMP

Drop use of php memory allocators as this raise various conflicts
with other extensions and libraries which use libgmp.

No other solution found.
We cannot for ensure correct use of allocator with shared lib.

Some memory can allocated before php init
Some memory can be freed after php shutdown

Known broken run cases
- php + curl + gnutls + gmp
- mod_gnutls + mod_php + gnutls + gmp
- php + freetds + gnutls + gmp
- php + odbc + freetds + gnutls + gmp
- php + php-mapi (zarafa) + gnutls + gmp
ext/gmp/gmp.c