Adding a BCMATH_G() TSRM macro around all instances of _one_, _two_ and
_zero_ seems to be quite a pain because it means that libbcmath needs to
understand TSRM now.
On the other hand these three variables need to be per-request because
emalloc()'ed memory can't survive in between requests.
I'm seeing a memory overrun under PHP 4.3.0pre2 (debug) running under
Windows 2000 ISAPI. [ . . . ]
---
C:\Work\php-source\php-4.3.0pre2\ext\bcmath\libbcmath\src\init.c(72):
Freeing 0x01B85050 (1 bytes), script=c:\inetpub\wwwroot\test.php
Last leak
You are right. I screwed up. I have to make these TSRM globals.
I'll try and do it tomorrow.
Andi
At 09:44 AM 10/29/2002 -0800, Michael Sisolak wrote:
I'm seeing a memory overrun under PHP 4.3.0pre2 (debug) running under
Windows 2000 ISAPI. [ . . . ]
---