Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php use SwooleCli\Library; use SwooleCli\Preprocessor; return function (Preprocessor $..
Decoded Output download
<?php
use SwooleCli\Library;
use SwooleCli\Preprocessor;
return function (Preprocessor $p) {
$icu_prefix = ICU_PREFIX;
$os = $p->isMacos() ? 'MacOSX' : 'Linux';
$p->addLibrary(
(new Library('icu'))
->withHomePage('https://icu.unicode.org/')
->withLicense('https://github.com/unicode-org/icu/blob/main/icu4c/LICENSE', Library::LICENSE_SPEC)
->withManual(
'https://unicode-org.github.io/icu/userguide/icu_data/#:~:text=Building%20and%20Linking%20against%20ICU%20data'
)
->withUrl('https://github.com/unicode-org/icu/releases/download/release-73-2/icu4c-73_2-src.tgz')
->withFileHash('md5','b8a4b8cf77f2e2f6e1341eac0aab2fc4')
->withManual('https://unicode-org.github.io/icu/userguide/icu_data/#overview')
->withPrefix($icu_prefix)
->withConfigure(
<<<EOF
CPPFLAGS="-DU_CHARSET_IS_UTF8=1 -DU_USING_ICU_NAMESPACE=1 -DU_STATIC_IMPLEMENTATION=1" source/runConfigureICU $os --prefix={$icu_prefix} --enable-static=yes --enable-shared=no --with-data-packaging=static --enable-release=yes --enable-extras=yes --enable-icuio=yes --enable-dyload=no --enable-tools=yes --enable-tests=no --enable-samples=no
EOF
)
->withPkgName('icu-i18n')
->withPkgName('icu-io')
->withPkgName('icu-uc')
->withBinPath($icu_prefix . '/bin/:' . $icu_prefix . "/sbin")
);
$libs = $p->isMacos() ? '-lc++' : ' -lstdc++ ';
$p->withVariable('LIBS', '$LIBS ' . $libs);
};
?>
Did this file decode correctly?
Original Code
<?php
use SwooleCli\Library;
use SwooleCli\Preprocessor;
return function (Preprocessor $p) {
$icu_prefix = ICU_PREFIX;
$os = $p->isMacos() ? 'MacOSX' : 'Linux';
$p->addLibrary(
(new Library('icu'))
->withHomePage('https://icu.unicode.org/')
->withLicense('https://github.com/unicode-org/icu/blob/main/icu4c/LICENSE', Library::LICENSE_SPEC)
->withManual(
'https://unicode-org.github.io/icu/userguide/icu_data/#:~:text=Building%20and%20Linking%20against%20ICU%20data'
)
->withUrl('https://github.com/unicode-org/icu/releases/download/release-73-2/icu4c-73_2-src.tgz')
->withFileHash('md5','b8a4b8cf77f2e2f6e1341eac0aab2fc4')
->withManual('https://unicode-org.github.io/icu/userguide/icu_data/#overview')
->withPrefix($icu_prefix)
->withConfigure(
<<<EOF
CPPFLAGS="-DU_CHARSET_IS_UTF8=1 -DU_USING_ICU_NAMESPACE=1 -DU_STATIC_IMPLEMENTATION=1" \
source/runConfigureICU $os --prefix={$icu_prefix} \
--enable-static=yes \
--enable-shared=no \
--with-data-packaging=static \
--enable-release=yes \
--enable-extras=yes \
--enable-icuio=yes \
--enable-dyload=no \
--enable-tools=yes \
--enable-tests=no \
--enable-samples=no
EOF
)
->withPkgName('icu-i18n')
->withPkgName('icu-io')
->withPkgName('icu-uc')
->withBinPath($icu_prefix . '/bin/:' . $icu_prefix . "/sbin")
);
$libs = $p->isMacos() ? '-lc++' : ' -lstdc++ ';
$p->withVariable('LIBS', '$LIBS ' . $libs);
};
Function Calls
None |
Stats
MD5 | b71ad5f5a3cc68c3d87477d944eb2b66 |
Eval Count | 0 |
Decode Time | 80 ms |