lua callbacks are now object bound
commitb5e763ef1f94edce962a765adf25988de581bd29
authorAndreas Streichardt <andreas.streichardt@globalpark.com>
Wed, 20 Jan 2010 11:35:05 +0000 (20 12:35 +0100)
committerAndreas Streichardt <andreas.streichardt@globalpark.com>
Wed, 20 Jan 2010 11:35:05 +0000 (20 12:35 +0100)
treebf6745c1727e892f9d35bb801f4aa5ac476a7c5a
parent1b49fc7510a9347a1d72084e5a03e02923a484ba
lua callbacks are now object bound

lua callbacks should should not be saved in some global variable but be object bound.
When creating numerous lua objects in a row which reference numerous functions this may lead to huge memory usages.
this has been changed so that the callbacks are objectbound and will be deleted after unsetting the lua object
lua.c
php_lua.h
tests/011.phpt
tests/013.phpt