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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 13:01:36 2025 UTC