Skip to content

Commit

Permalink
allocate persistent memory blocks for stub-functions zenovich#40
Browse files Browse the repository at this point in the history
  • Loading branch information
zenovich committed Sep 30, 2012
1 parent b048339 commit 34ce9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ ZEND_FUNCTION(_php_runkit_removed_method) {
}

static inline void _php_runkit_init_stub_function(char *name, void (*handler)(INTERNAL_FUNCTION_PARAMETERS), zend_function **result) {
*result = emalloc(sizeof(zend_function));
*result = pemalloc(sizeof(zend_function), 1);
(*result)->common.function_name = name;
(*result)->common.scope = NULL;
(*result)->common.arg_info = NULL;
Expand Down

0 comments on commit 34ce9fc

Please sign in to comment.