Bug #1255: Variables do not work in pretokenized scripts
| From: | ryan at sunsetd dot com | Date: | Mon, 22 Mar 1999 06:54:13 +0000 |
| Subject: | Bug #1255: Variables do not work in pretokenized scripts | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4713@lists.php.net to get a copy of this message | ||
From: ryan@sunsetd.com
Operating system: Linux 2.2.2 / RedHat 5.2
PHP version: 3.0.7
PHP Bug Type: Misbehaving function
Bug description: Variables do not work in pretokenized scripts
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..
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net