Advertisement
elmanti

Basic memory management

Oct 25th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. ZEND_FUNCTION(leak)
  2. {
  3.     long leakbytes = 3;
  4.  
  5.     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|l", &leakbytes) == FAILURE) {
  6.         return;
  7.     }
  8.  
  9.     emalloc(leakbytes);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement