PHP-CLI +文件权限

When you run a php script in the command line, does is execute with the read/write permissions of the current user or what?

Yes, it does.

Yes, it runs with the permissions of the current user. Just like executing any other command-line program.

Yes, it will run as the current user in a default setup.

If you where on a unix system you could change this by adjusting the setuid bit of the php cli binary. Of course doing so would be a bad idea.