I wrote an embedded application that can execute php scripts.
When the script exits and I call the php_embed_shutdown() function
it crashes.  Can someone explain to me how I can keep this from
happening?

Without looking into the code, crash on shutdown frequently hints on one of the two:
1. Memory corruption
2. applying efree() to a memory block that was result of malloc() or was not allocated. This includes putting malloc'ed or non-allocated strings into zvals, etc. I would suggest to build PHP with --enable-debug and see if memory manager has something to say. Another idea would be to use valgrind if you are running on supported system or analogous tool if you run on system where valgrind does not work.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to