CopernicaMarketingSoftware / PHP-CPP

Library to build PHP extensions with C++

Home Page:http://www.php-cpp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zend_mm_heap corrupted when 2 PHPCPP extensions are loaded

henrywood opened this issue · comments

I experience zend_mm_heap corrupted errors when two PHPCPP-based extensions are loaded at the same time ?

Along this error PHP CLI exits with exit code 1 when both extensions are loaded.

When one of the extensions is loaded without the other one, everything works in that extension
When both extensions are loaded at the same time, everything still seems to work but the zend_mm_heap corrupted are shown and all PHP CLI processes now exit with exitcode 1 (instead of 0)

How do I debug this situation.

I am using PHPCPP 2.2.0

I can provide makefiles or extension source code if needed.

I am running PHP 7.2.32-1+ubuntu16.04.1+deb.sury.org+1 (cli) (Extension API: 20170718)

Never mind this one - it was caused by some global variables used by both extensions