]> 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)
committerRemi Collet <remi@php.net>
Mon, 27 Oct 2014 06:45:34 +0000 (07:45 +0100)
commit3c925b18fa96043e5d7e86f9ce544b143c3c2079
treeb369f06e226a0209c1039ec305826046382897ef
parent22b9f16e9ad0f500b73fd6814feb6c00ce749f34
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