I was not referring specifically to this case.
Passion plays, etc. Those are what I had in mind, and whipping is certainly not the only thing that goes on there.
Passion plays are stage productions, though. All of those things are being simulated, they aren't real.
Perhaps you're thinking of the Filipino guys who get themselves crucified with real nails every year, but the Catholic Church does not endorse that kind of thing.