Thanks for the feedback. I should have thought of it, but I added phpinfo() to the script. Sure enough:
register_globals Off Off
However, like I said, /usr/local/bin/php.ini has
register_globals = On
I restarted apache just to make sure, but that had no change. no .htaccess files anywhere in the file path, and nothing in httpd.conf (that I could recognize, at least) as having to do with turning that off.
So, it looks like my problem is that php.ini says register_globals is on, but for some reason the script isn't taking it that way.
Thoughts?