Running cli editor from php

I'm trying to run vim from the command line to edit database records using php.

However, both passthru() and system() both seem to not assign STDIN of the process to my console. Is it possible to do this? STDERR seems fine, as I do get a "Vim: Warning: Output is not to a terminal".