Fix error Internal zval's can't be arrays, objects or resources