php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1255 Variables do not work in pretokenized scripts
Submitted: 1999-03-22 01:54 UTC Modified: 1999-06-01 15:44 UTC
From: ryan at sunsetd dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.7 OS: Linux 2.2.2 / RedHat 5.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ryan at sunsetd dot com
New email:
PHP Version: OS:

 

 [1999-03-22 01:54 UTC] ryan at sunsetd dot com
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..

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-01 15:44 UTC] jim at cvs dot php dot net
Pretokenized scripts are not supported.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 13 14:01:33 2024 UTC