lock() lock( $name = null, $blocking = false) : boolean Locks a command. Parameters $name $blocking Returns boolean