|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-01 15:44 UTC] jim at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
When executing a pretokenized PHP script, it appears that variables do not work properly. This can be confirmed with the following simply script: <? $blah=5; phpinfo(); ?> This executes and produces the expected results as a PHP script, but when the script is pretokenized to a .php3p script (via "php -p scriptname.php3"), the PHP info does not include anything under the "PHP Variables" section, and the variable's value isn't accessible within the script. This occurs both with executing the script from the command line ("php -e scriptname.php3p") and through the mod_php module with the MIME type application/x-httpd-php3-preprocessed associated with .php3p files. First noticed this when writing some general-purpose (non-WWW) scripts. Pretokenized the script, then noticed that command line parameters weren't passed to the script at all. Then noticed that *no* variables were working at all..