On Sat, 2010-09-18 at 20:01 +0000, Jeff Brown wrote: > I have recently tried registering a class (via zend_register_class) > inside of a PHP_FUNCTION, though this may sound weird and an > unecessary function I ask that you ignore this request.I have noticed > that registering goes fine but every time I declare a class after the > call to my function, e.g:create_class_function('class_name');class > Test { } > My PHP process crashes, not declaring the Test classes causes no > crash, I also noticed that If I move my code to the MINIT part no > crash occurs and all goes well as with other PHP extensions.
I have no idea why it crashes, but in general there are a few assumptions around "built in" classes, like not freeing them on request shutdown etc. Adding them at run time really is no good idea ... johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php