Fixing update of zval using a string variable as index