Basic wrapper for the PHP proc_* functions (blocking, single-thread only)