Re: Pretokenized files

From: Date: Tue, 27 Jun 2000 15:56:34 +0000
Subject: Re: Pretokenized files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3357@lists.php.net to get a copy of this message
Zeev Suraski wrote: > > Just don't use pretokenized scripts, they're 100.00% pointless (spelled > out - they're not quicker and they're not difficult to decipher). > > And no, require() doesn't work with pretokenized files. > Ok ... I've substituted all require with include to PHP3 files and seems to work. Only one file PHP3P make segmentation fault on apache...it uses 2 or 3 array that are re-allocated during the script. The error is in the /usr/lib/gconv/ISO8859-1.so lib ... what is this ? Is there in PHP a delete or destroy function to de-allocate an array before re-allocate it ? I know that pretokenized are not sure ... but my target of users is really low. Do you know another way to protect php3 sources from reading ? > Zeev > > On Tue, 27 Jun 2000, Ermelindo Mauriello wrote: > > > I've compiled PHP3-0-12 as built-in apache module, then I've compiled > > a CGI version. > > Using the CGI version I've pretokenized all my PHP3 files (php -p > > filename) > > and obtained PHP3P files. > > Then I've added the line: > > AddType application/x-httpd-php3-preprocessed .php3p > > in httpd.conf to make the built-in module parse the pretokenized files. > > All works fine ... but I've a strange problem with include and require: > > > > require doesn't work at all. > > include "filename.php3p" works but doesn't parse the php3p file, it > > include the > > binary file in the HTML page > > > > include "filename.php3" works but the file to be included must not be > > pretokenized. > > > > Is it right or there is a configuration error ? > > > > Thanks. > > > > > > -- > Zeev Suraski <zeev@zend.com> > http://www.zend.com/ -- Dott. Ermelindo Mauriello <inmaer@inteltec.it> Network Engineer In.Tel.Tec. SpA Networked Applications Division Salita Scudillo, 20 80131 Napoli (Italia) Tel.+39081-5921418 Fax +39081-5922026

« previous php.general (#3357) next »