Some distros (e.g. frugalware) build PHP with --enable-safe-mode, so as we need

to explicitly disable it to avoid the testsuite failing with:

Warning: dl(): Dynamically loaded extensions aren't allowed when running in Safe Mode

Patch from Miklos Vajna.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2009-03-29 23:38:19 +00:00
commit ed4d6ddec1

View file

@ -775,7 +775,7 @@ PHP=@PHP@
PHPSCRIPT ?= runme.php
php_run:
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP) -n -q -d extension_dir=. $(PHPSCRIPT)
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP) -n -q -d extension_dir=. -d safe_mode=Off $(PHPSCRIPT)
# -----------------------------------------------------------------
# Cleaning the PHP examples