Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allocate persistent memory blocks for stub-functions #40

  • Loading branch information...
commit 34ce9fc167edd0248c821e421cf7cd88b3df359e 1 parent b048339
@zenovich authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  runkit.c
View
2  runkit.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.