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) {
    $libgif_prefix = GIF_PREFIX;
    $p->addLibrary(
        (new Library('libgif'))
            ->withHomePage('https://giflib.sourceforge.net/')
            ->withManual('https://giflib.sourceforge.net/intro.html')
            ->withLicense('https://giflib.sourceforge.net/intro.html', Library::LICENSE_SPEC)
            ->withUrl('https://sourceforge.net/projects/giflib/files/giflib-5.2.1.tar.gz')
            ->withMd5sum('6f03aee4ebe54ac2cc1ab3e4b0a049e5')
            ->withFileHash('md5','6f03aee4ebe54ac2cc1ab3e4b0a049e5')
            ->withPrefix($libgif_prefix)
            ->withMakeOptions('libgif.a')
            ->withMakeInstallCommand('')
            ->withScriptAfterInstall(
                <<<EOF
                if [ ! -d {$libgif_prefix}/lib ]; then
                    mkdir -p {$libgif_prefix}/lib
                fi
                if [ ! -d {$libgif_prefix}/include ]; then
                    mkdir -p {$libgif_prefix}/include
                fi
                cp libgif.a {$libgif_prefix}/lib/libgif.a
                cp gif_lib.h {$libgif_prefix}/include/gif_lib.h
EOF
            )
            ->withLdflags('-L' . $libgif_prefix . '/lib')
    );

    $p->withVariable('CPPFLAGS', '$CPPFLAGS -I' . $libgif_prefix . '/include');
    $p->withVariable('LDFLAGS', '$LDFLAGS -L' . $libgif_prefix . '/lib');
    $p->withVariable('LIBS', '$LIBS -lgif');
};
 ?>

Did this file decode correctly?

Original Code

<?php

use SwooleCli\Library;
use SwooleCli\Preprocessor;

return function (Preprocessor $p) {
    $libgif_prefix = GIF_PREFIX;
    $p->addLibrary(
        (new Library('libgif'))
            ->withHomePage('https://giflib.sourceforge.net/')
            ->withManual('https://giflib.sourceforge.net/intro.html')
            ->withLicense('https://giflib.sourceforge.net/intro.html', Library::LICENSE_SPEC)
            ->withUrl('https://sourceforge.net/projects/giflib/files/giflib-5.2.1.tar.gz')
            ->withMd5sum('6f03aee4ebe54ac2cc1ab3e4b0a049e5')
            ->withFileHash('md5','6f03aee4ebe54ac2cc1ab3e4b0a049e5')
            ->withPrefix($libgif_prefix)
            ->withMakeOptions('libgif.a')
            ->withMakeInstallCommand('')
            ->withScriptAfterInstall(
                <<<EOF
                if [ ! -d {$libgif_prefix}/lib ]; then
                    mkdir -p {$libgif_prefix}/lib
                fi
                if [ ! -d {$libgif_prefix}/include ]; then
                    mkdir -p {$libgif_prefix}/include
                fi
                cp libgif.a {$libgif_prefix}/lib/libgif.a
                cp gif_lib.h {$libgif_prefix}/include/gif_lib.h
EOF
            )
            ->withLdflags('-L' . $libgif_prefix . '/lib')
    );

    $p->withVariable('CPPFLAGS', '$CPPFLAGS -I' . $libgif_prefix . '/include');
    $p->withVariable('LDFLAGS', '$LDFLAGS -L' . $libgif_prefix . '/lib');
    $p->withVariable('LIBS', '$LIBS -lgif');
};

Function Calls

None

Variables

None

Stats

MD5 1ff461c8fed73d6a21815b50ef282a99
Eval Count 0
Decode Time 80 ms