Ticket #244: shm.patch

File shm.patch, 509 bytes (added by yachoor, 1 year ago)
  • org/shm.c

    old new  
    111111    if ((Z_TYPE_P(val) & ~IS_CONSTANT_INDEX) == IS_OBJECT) { 
    112112        php_serialize_data_t var_hash; 
    113113        smart_str buf = {0}; 
    114         result = (zval *)emalloc(sizeof(result)); 
     114        result = (zval *)emalloc(sizeof(*result)); 
    115115 
    116116        PHP_VAR_SERIALIZE_INIT(var_hash); 
    117117        php_var_serialize(&buf, &val, &var_hash TSRMLS_CC);