pk-fr / yakpro-po

YAK Pro - Php Obfuscator
http://www.php-obfuscator.com
Other
1.24k stars 350 forks source link

Multiple fixes and 1 new feature #74

Closed woodholly closed 1 year ago

woodholly commented 4 years ago

Hello guys! I have created important patch, I give anybody permission to apply it. Contents: 1) fixes multiple nasty symlink-related bugs (in php is_dir for symlink targeting to directory returns true) 2) adds new option to remove obfuscated target directories and files that already absent in source directory 3) enforces more strict mtime checks for updating target files, this prevents bugs when source mtime < obfuscated mtime and this is common situation nowadays (git checkout olderbranch)

Why: 2) and 3) solves a problem of obfuscating very large project without removing obfuscated old target directory.. this saves time.

How to apply a patch: git apply --check file.patch git am --signoff < file.patch

file.patch.txt