note 103735 modified in phar.compressfiles by danbrown

From: Date: Sat, 30 Apr 2011 16:23:17 +0000
Subject: note 103735 modified in phar.compressfiles by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179308@lists.php.net to get a copy of this message
Compressing the entire archive $phar->compress(); overrides your stub file. Use compressFiles to have the the files compressed keeping your own stub in tact (which is not being compressed). The compression is a little bit worth (since one file is left uncompressed), but enables you to have your own stub file executed with browser requests. Don't get confused, compressing doesn't rise the security level of your code or obfuscating it strongly enough. The source code of your compressed phar is still easy to read. --was-- Compressing the entire archive $phar->compress(); overrides your stub file as mentioned here http://www.php.net/manual/en/phar.converttoexecutable.php#103733 Use compressFiles to have the the files compressed keeping your own stub in tact (which is not being compressed). The compression is a little bit worth (since one file is left uncompressed), but enables you to have your own stub file executed with browser requests. Don't get confused, compressing doesn't rise the security level of your code or obfuscating it strongly enough. The source code of your compressed phar is still easy to read. http://php.net/manual/en/phar.compressfiles.php

« previous php.notes (#179308) next »