asgrim / example-pie-extension

An example of a PIE-enabled PHP module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example PIE extension

This an example PHP module that can be installed using PIE.

Build it

Linux

The usual process applies...

PHPIZE=/usr/bin/phpize7.1
PHP_CONFIG=/usr/bin/php-config7.1
make clean
$PHPIZE --clean
$PHPIZE --force
./configure --enable-example-pie-extension --with-php-config=$PHP_CONFIG
make
make test

Windows

Prepare Windows build environment:

Compile the extension

phpize
configure --enable-example-pie-extension --enable-debug --with-php-build="C:\php-sdk\phpdev\vs16\x64\deps" --with-prefix="C:\php\"
nmake
nmake run ARGS="-m"

About

An example of a PIE-enabled PHP module


Languages

Language:C 56.9%Language:CMake 14.0%Language:M4 14.0%Language:JavaScript 9.2%Language:PHP 5.9%