Hi
I have exactly the same problem than you! Same problem same function that I want to use!
I have read these forums archive and it seems it is a Cpanel problem, an incompatibility problem.
It seems that in installing apache::asp, that resolves the problem. But seems that it isn't a stable solution.