Skip to content

Instantly share code, notes, and snippets.

@tvlooy tvlooy/
Last active Jun 3, 2019

What would you like to do?
Use OpenBSD's pledge and unveil syscalls in PHP
# Note that this is for people that want to build it from source, using pecl
# This code is in official OpenBSD ports now
pkg_add php-7.2.10
ln -s /usr/local/bin/php-7.2 /usr/local/bin/php
ln -s /usr/local/bin/phpize-7.2 /usr/local/bin/phpize
ln -s /usr/local/bin/php-config-7.2 /usr/local/bin/php-config
pkg_add autoconf-2.69p2
pkg_add pear
pecl download pledge
tar xzvf pledge-2.0.2.tgz
cd pledge-2.0.2
make install
php -dextension=pledge -m | grep pledge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.