if (param->name) {
param->name = estrndup(param->name, param->namelen);
- zend_hash_update(hash, param->name, param->namelen, param, sizeof(*param), (void**)&pparam);
+ zend_hash_update(hash, param->name, param->namelen+1, param, sizeof(*param), (void**)&pparam);
} else {
zend_hash_index_update(hash, param->paramno, param, sizeof(*param), (void**)&pparam);
}
¶m.parameter, ¶m.param_type, ¶m.max_value_len, ¶m.driver_params)) {
return 0;
}
- } else {
- /* since we're hashing this, we need the null byte too */
- param.namelen = name_strlen + 1;
}
if (param.paramno > 0) {